forked from e621ng/e621ng
[Docker] Set default for UID/GID in Dockerfile as well
We can't rely on this being set by using compose, since CI as an example just does `docker build .`
This commit is contained in:
parent
b0b5e2a7a7
commit
5a1e833e7e
@ -39,8 +39,8 @@ COPY --from=node-builder /app/node_modules node_modules
|
||||
COPY --from=ruby-builder /usr/local/bundle /usr/local/bundle
|
||||
|
||||
# Create a user with (potentially) the same id as on the host
|
||||
ARG HOST_UID
|
||||
ARG HOST_GID
|
||||
ARG HOST_UID=1000
|
||||
ARG HOST_GID=1000
|
||||
RUN addgroup --gid ${HOST_GID} e621ng && \
|
||||
adduser -S --shell /bin/sh --uid ${HOST_UID} e621ng && \
|
||||
addgroup e621ng wheel && \
|
||||
|
Loading…
Reference in New Issue
Block a user