Skip to content

Commit

Permalink
use docker's built-in init system instead of tini
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Jan 16, 2025
1 parent d715cc9 commit ce43c5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -46,6 +42,4 @@ USER app

COPY --chown=1000:1000 . .

ENTRYPOINT ["tini", "--"]

CMD ["python", "-m", "proxy_scraper_checker"]
1 change: 1 addition & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
services:
app:
build: .
init: true
logging:
driver: local
tty: true
Expand Down

0 comments on commit ce43c5a

Please sign in to comment.