diff --git a/Dockerfile.external b/Dockerfile.external index 88bc971e..b685c559 100644 --- a/Dockerfile.external +++ b/Dockerfile.external @@ -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 diff --git a/Dockerfile.local b/Dockerfile.local index 3a00ce06..fa8ea29d 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -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