Installation via pip (#186)

Builder for https://pypi.org/project/changedetection.io/
This commit is contained in:
dgtlmoon
2021-08-16 15:24:37 +02:00
committed by GitHub
parent 642ad5660d
commit a11b6daa2e
66 changed files with 245 additions and 77 deletions

View File

@@ -0,0 +1,14 @@
FROM python:3.8-slim
# https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN [ ! -d "/datastore" ] && mkdir /datastore
COPY sleep.py /
CMD [ "python", "/sleep.py" ]

View File

@@ -0,0 +1,7 @@
import time
print ("Sleep loop, you should run your script from the console")
while True:
# Wait for 5 seconds
time.sleep(2)