mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-31 06:35:17 +00:00
Set home directory to /home/worker
when creating user
This commit is contained in:
@@ -26,7 +26,7 @@ EXPOSE 8080
|
||||
# Prepare a non-root user
|
||||
ARG UID=100
|
||||
ARG GID=65534
|
||||
RUN adduser --system --uid ${UID} --gid ${GID} worker
|
||||
RUN adduser --system --gid ${GID} --uid ${UID} --home /home/worker worker
|
||||
WORKDIR /home/worker/app
|
||||
|
||||
RUN mkdir local_data; chown worker local_data
|
||||
|
@@ -36,7 +36,7 @@ EXPOSE 8080
|
||||
# Prepare a non-root user
|
||||
ARG UID=100
|
||||
ARG GID=65534
|
||||
RUN adduser --system --gid ${GID} --uid ${UID} worker
|
||||
RUN adduser --system --gid ${GID} --uid ${UID} --home /home/worker worker
|
||||
WORKDIR /home/worker/app
|
||||
|
||||
RUN mkdir local_data; chown worker local_data
|
||||
|
Reference in New Issue
Block a user