15 lines
263 B
15 lines
263 B
4 years ago
|
FROM python:3.8-slim
|
||
|
|
||
|
# https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops
|
||
|
ENV PYTHONUNBUFFERED=1
|
||
|
|
||
4 years ago
|
WORKDIR /app
|
||
4 years ago
|
|
||
|
RUN [ ! -d "/datastore" ] && mkdir /datastore
|
||
|
|
||
4 years ago
|
COPY sleep.py /
|
||
|
CMD [ "python", "/sleep.py" ]
|
||
|
|
||
|
|
||
|
|