]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Revert "docker: Remove remnants of .env file configuration"
authorStephen Finucane <stephen@that.guru>
Mon, 10 Mar 2025 22:27:55 +0000 (22:27 +0000)
committerStephen Finucane <stephen@that.guru>
Mon, 10 Mar 2025 22:28:27 +0000 (22:28 +0000)
This reverts commit 359a8566dbbdfcd4463b261ecc377ed40deb6ace.
We can simply pass the '-o' / '--non-unique' argument instead.

Signed-off-by: Stephen Finucane <stephen@that.guru>
tools/docker/Dockerfile

index c732598655b8bf22eea67b0e1c8b47db642711c0..0a55b54dbebf4ead2b8e14316122e74ddb59d579 100644 (file)
@@ -1,13 +1,16 @@
 FROM ghcr.io/getpatchwork/pyenv:latest
 
+ARG UID=1000
+ARG GID=1000
+
 ARG TZ="Australia/Canberra"
 ENV DEBIAN_FRONTEND noninteractive
 ENV PYTHONUNBUFFERED 1
 ENV PROJECT_HOME /home/patchwork/patchwork
 ENV DJANGO_SETTINGS_MODULE patchwork.settings.dev
 
-RUN groupadd patchwork && \
-    useradd --gid=patchwork --create-home patchwork
+RUN groupadd --gid=$GID patchwork && \
+    useradd --uid=$UID --gid=$GID --create-home patchwork
 RUN rm -f /etc/localtime; ln -s /usr/share/zoneinfo/$TZ /etc/localtime
 
 RUN eval "$(pyenv init -)"