Use && instead of ; to chain commands to detect failure better

This commit is contained in:
Quentin McGaw 2024-03-25 15:32:38 +00:00
parent ac2a38e988
commit 2bbb1b26db
2 changed files with 4 additions and 4 deletions

View File

@ -47,8 +47,8 @@ RUN adduser --group --gid ${GID} worker
RUN adduser --system --ingroup worker --uid ${UID} --home /home/worker worker
WORKDIR /home/worker/app
RUN mkdir local_data; chown worker local_data
RUN mkdir models; chown worker models
RUN mkdir local_data && chown worker local_data
RUN mkdir models && chown worker models
COPY --chown=worker --from=dependencies /home/worker/app/.venv/ .venv
COPY --chown=worker private_gpt/ private_gpt
COPY --chown=worker fern/ fern

View File

@ -58,8 +58,8 @@ RUN adduser --group --gid ${GID} worker
RUN adduser --system --ingroup worker --uid ${UID} --home /home/worker worker
WORKDIR /home/worker/app
RUN mkdir local_data; chown worker local_data
RUN mkdir models; chown worker models
RUN mkdir local_data && chown worker local_data
RUN mkdir models && chown worker models
COPY --chown=worker --from=dependencies /home/worker/app/.venv/ .venv
COPY --chown=worker private_gpt/ private_gpt
COPY --chown=worker fern/ fern