From 5a1e833e7ef8b79a05efb32bb0d459444f39c2cf Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Sun, 14 Jan 2024 20:13:08 +0000 Subject: [PATCH] [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 .` --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 75cd69406..53d1320f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \