From 2f1569b931a6e9bcd8f5d85e902efe9074dc625c Mon Sep 17 00:00:00 2001 From: Floatingghost Date: Sat, 1 Jun 2024 08:29:44 +0100 Subject: [PATCH] use standard user --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84f9d474f..bb10abbea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,13 +45,6 @@ LABEL org.opencontainers.image.title="akkoma" \ ARG HOME=/opt/akkoma EXPOSE 4000 -ARG UID=1000 -ARG GID=1000 -ARG UNAME=akkoma - -RUN addgroup -g $GID $UNAME -RUN adduser -u $UID -G $UNAME -D -h $HOME $UNAME - WORKDIR /opt/akkoma COPY --from=BUILD /src/docker-release/ $HOME @@ -66,7 +59,8 @@ ENV AKKOMA_CONFIG_PATH=/etc/akkoma/config.exs ADD docker-entrypoint.sh $HOME/docker-entrypoint.sh -USER $UNAME +RUN adduser --system --home /opt/akkoma akkoma +USER akkoma VOLUME uploads /opt/akkoma/uploads VOLUME instance /opt/akkoma/instance