Tidy up devel docker

This commit is contained in:
Leigh Morresi
2021-01-28 11:12:48 +01:00
parent b574a28f1f
commit 69c18f817d
2 changed files with 1 additions and 2 deletions

View File

@@ -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" ]

View File

@@ -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)