From 86ea28ccebf44be8dfb99317eeb1dbf76a9b1a70 Mon Sep 17 00:00:00 2001 From: MiTHRAL Date: Wed, 13 May 2026 22:21:13 -0400 Subject: [PATCH] Use UID GID 1001 1001 in container --- Dockerfile | 6 +++--- README.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5031c53..a53a2d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,9 @@ FROM python:3.12-alpine WORKDIR /app -COPY --chown=1001:1000 status_bot.py /app/status_bot.py -COPY --chown=1001:1000 dashboard.html /app/dashboard.html -COPY --chown=1001:1000 services.example.json /app/services.json +COPY --chown=1001:1001 status_bot.py /app/status_bot.py +COPY --chown=1001:1001 dashboard.html /app/dashboard.html +COPY --chown=1001:1001 services.example.json /app/services.json RUN adduser -D -u 1001 -g "" -h /app archive-status diff --git a/README.md b/README.md index 38be10d..3b5107d 100644 --- a/README.md +++ b/README.md @@ -112,10 +112,10 @@ mkdir -p state chmod 755 state ``` -The container runs as UID `1001` inside the image. If the mounted `services.json` or `state/` were created by another user, fix ownership once: +The container runs as `1001:1001` inside the image. If the mounted `services.json` or `state/` were created by another user, fix ownership once: ```sh -sudo chown -R 1001:1000 services.json state +sudo chown -R 1001:1001 services.json state ``` If `state/` or `services.json` were created by a previous container as another user, fix ownership once: