diff --git a/Dockerfile b/Dockerfile index 0b9a87a..a01d95e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,11 +29,7 @@ RUN --mount=from=ghcr.io/astral-sh/uv,source=/uv,target=/bin/uv \ FROM python-base-stage AS python-run-stage -RUN apt-get update \ - && apt-get install -y --no-install-recommends tini \ - && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ - && rm -rf /var/lib/apt/lists/* \ - && groupadd --gid 1000 app \ +RUN groupadd --gid 1000 app \ && useradd --gid 1000 --no-log-init --create-home --uid 1000 app \ && mkdir -p /home/app/.cache/proxy_scraper_checker \ && chown 1000:1000 /home/app/.cache/proxy_scraper_checker @@ -46,6 +42,4 @@ USER app COPY --chown=1000:1000 . . -ENTRYPOINT ["tini", "--"] - CMD ["python", "-m", "proxy_scraper_checker"] diff --git a/compose.yaml b/compose.yaml index c8e1ac3..c2da64b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,6 +1,7 @@ services: app: build: . + init: true logging: driver: local tty: true