diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2023-07-29 17:34:51 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2023-07-29 17:34:51 +0000 |
commit | 214ca33b6c936b3e6da48190fdcd309513513980 (patch) | |
tree | 97ded519c1f084c1f9b47c0b004ce2766c76dd47 /Dockerfile | |
parent | 51502a433353ba1bf034a22be9bdf7569531e2f5 (diff) | |
download | tagrss-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-- | Dockerfile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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"] |