From 214ca33b6c936b3e6da48190fdcd309513513980 Mon Sep 17 00:00:00 2001 From: Arjun Satarkar Date: Sat, 29 Jul 2023 23:04:51 +0530 Subject: Use smaller base image, exit cleanly in Docker, improve logging --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 61ce76f..80159e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ -FROM python:3.11-bookworm +FROM python:3.11-alpine RUN mkdir /tagrss_data/ COPY . /tagrss WORKDIR /tagrss -RUN pip install -r requirements.txt +RUN pip install --no-cache-dir -r requirements.txt EXPOSE 8000 +STOPSIGNAL SIGINT + CMD ["./serve.py", "--host", "0.0.0.0", "--storage-path", "/tagrss_data/tagrss_data.db"] -- cgit v1.2.3-57-g22cb