diff --git a/Dockerfile b/Dockerfile index ddd99f3..1732729 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,12 @@ CMD ["python", "-m", "unittest", "discover", "-s", "tests", "-v"] FROM python:3.11-slim ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 -RUN groupadd --gid 1001 archive-control \ - && useradd --uid 1001 --gid 1001 --no-create-home archive-control +RUN if ! getent group 1001 >/dev/null; then \ + groupadd --gid 1001 archive-control; \ + fi \ + && if ! getent passwd 1001 >/dev/null; then \ + useradd --uid 1001 --gid 1001 --no-create-home archive-control; \ + fi COPY --from=builder /wheels /wheels RUN pip install --no-cache-dir /wheels/*.whl && rm -rf /wheels USER 1001:1001 diff --git a/pyproject.toml b/pyproject.toml index 75a6259..c1c2eb0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "archive-clients" -version = "0.1.16" +version = "0.1.17" requires-python = ">=3.11" dependencies = ["protobuf==7.35.1", "websockets==16.0"]