[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:
Earlopain 2024-01-14 20:13:08 +00:00
parent b0b5e2a7a7
commit 5a1e833e7e
No known key found for this signature in database
GPG Key ID: 48860312319ADF61

View File

@ -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 && \