mirror of
https://github.com/bytedream/bambulab-store-tracker.git
synced 2026-11-04 07:32:08 +01:00
Add Dockerfile
This commit is contained in:
1 parent
a60f6c379e
commit
1a6e6ad929
2 files changed
+17
No files matched your search
@@ -0,0 +1,2 @@
|
|||||||
|
.ipynb_checkpoints
|
||||||
|
venv
|
||||||
+15
@@ -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