mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-08-31 14:52:19 +00:00
UID
and GID
build arguments for worker
user
This commit is contained in:
@@ -23,7 +23,9 @@ ENV PORT=8080
|
||||
EXPOSE 8080
|
||||
|
||||
# Prepare a non-root user
|
||||
RUN adduser --system worker
|
||||
ARG UID=100
|
||||
ARG GID=65534
|
||||
RUN adduser --system --uid ${UID} --gid ${GID} worker
|
||||
WORKDIR /home/worker/app
|
||||
|
||||
RUN mkdir local_data; chown worker local_data
|
||||
|
@@ -33,8 +33,9 @@ ENV PORT=8080
|
||||
EXPOSE 8080
|
||||
|
||||
# Prepare a non-root user
|
||||
RUN adduser --group worker
|
||||
RUN adduser --system --ingroup worker worker
|
||||
ARG UID=100
|
||||
ARG GID=65534
|
||||
RUN adduser --system --gid ${GID} --uid ${UID} worker
|
||||
WORKDIR /home/worker/app
|
||||
|
||||
RUN mkdir local_data; chown worker local_data
|
||||
|
Reference in New Issue
Block a user