mirror of
https://github.com/bytedream/bambulab-store-tracker.git
synced 2025-12-15 10:30:43 +01:00
Add Dockerfile
This commit is contained in:
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
||||
.ipynb_checkpoints
|
||||
venv
|
||||
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user