Add Dockerfile

This commit is contained in:
2024-03-25 16:51:51 +01:00
parent a60f6c379e
commit 1a6e6ad929
2 changed files with 17 additions and 0 deletions

2
.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
.ipynb_checkpoints
venv

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM alpine:latest
WORKDIR /bambulab-filament-tracker
COPY main.py ./
RUN apk update && apk add python3 py3-pip
RUN pip3 install --break-system-packages requests
RUN echo "*/30 * * * * python3 /bambulab-filament-tracker/main.py --db /bambulab-filament-tracker/data/db.sqlite3" | crontab -
VOLUME ["/bambulab-filament-tracker/data"]
CMD ["crond", "-f"]