aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2023-07-29 17:34:51 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2023-07-29 17:34:51 +0000
commit214ca33b6c936b3e6da48190fdcd309513513980 (patch)
tree97ded519c1f084c1f9b47c0b004ce2766c76dd47 /Dockerfile
parent51502a433353ba1bf034a22be9bdf7569531e2f5 (diff)
downloadtagrss-214ca33b6c936b3e6da48190fdcd309513513980.tar
tagrss-214ca33b6c936b3e6da48190fdcd309513513980.tar.gz
tagrss-214ca33b6c936b3e6da48190fdcd309513513980.zip
Use smaller base image, exit cleanly in Docker, improve logging
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 4 insertions, 2 deletions
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"]