parent
0b20dc7712
commit
0790dd555e
@ -1,14 +0,0 @@
|
|||||||
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" ]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
import time
|
|
||||||
|
|
||||||
print ("Sleep loop, you should run your script from the console")
|
|
||||||
|
|
||||||
while True:
|
|
||||||
# Wait for 5 seconds
|
|
||||||
time.sleep(2)
|
|
Loading…
Reference in new issue