kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Tidy up devel docker
rodzic
b574a28f1f
commit
69c18f817d
|
@ -1,5 +1,4 @@
|
||||||
FROM python:3.8-buster
|
FROM python:3.8-buster
|
||||||
RUN mkdir -p /app/dev
|
|
||||||
COPY sleep.py /
|
COPY sleep.py /
|
||||||
CMD [ "python", "/sleep.py" ]
|
CMD [ "python", "/sleep.py" ]
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
print ("Sleep loop, you should run your script from the console")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
# Wait for 5 seconds
|
# Wait for 5 seconds
|
||||||
print('To stderr.', file=sys.stderr)
|
|
||||||
|
|
||||||
time.sleep(2)
|
time.sleep(2)
|
Ładowanie…
Reference in New Issue