mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-30 13:29:20 +00:00
Use &&
instead of ;
to chain commands to detect failure better
This commit is contained in:
parent
ac2a38e988
commit
2bbb1b26db
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user