use docker's built-in init system instead of tini

This commit is contained in:
monosans
2025-01-16 22:54:10 +03:00
parent d715cc926b
commit ce43c5a59e
2 changed files with 2 additions and 7 deletions
+1 -7
View File
@@ -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"]
+1
View File
@@ -1,6 +1,7 @@
services:
app:
build: .
init: true
logging:
driver: local
tty: true