From 1d0f83fa693f17325b9a91a0d6522295e559cdc4 Mon Sep 17 00:00:00 2001 From: Andreas Brett Date: Mon, 29 Sep 2025 11:23:11 +0200 Subject: [PATCH] add PUID, PGID, TZ args --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ba2a88a..9a48421 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,11 @@ RUN pip install --user --no-cache-dir --no-warn-script-location . # second stage FROM python:3-slim -RUN groupadd -r mailrise && useradd --no-log-init -r -g mailrise mailrise +ARG PUID=1000 +ARG PGID=1000 +RUN groupadd -g ${PGID} -r mailrise && useradd --no-log-init -r -u ${PUID} -g mailrise mailrise +ARG TZ=Etc/UTC +RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && dpkg-reconfigure -f noninteractive tzdata USER mailrise COPY --from=builder --chown=mailrise:mailrise /root/.local/ /home/mailrise/.local/ ENV PATH=/home/mailrise/.local/bin/:$PATH