From 4ab49f2c8cd61ac3aba3c74cae3f677abb7565b3 Mon Sep 17 00:00:00 2001 From: Leigh Morresi <275001+dgtlmoon@users.noreply.github.com> Date: Fri, 29 Jan 2021 14:45:00 +0100 Subject: [PATCH] Dev docker tweaks --- backend/dev-docker/Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/backend/dev-docker/Dockerfile b/backend/dev-docker/Dockerfile index ccd124a6..126a2246 100644 --- a/backend/dev-docker/Dockerfile +++ b/backend/dev-docker/Dockerfile @@ -1,4 +1,14 @@ -FROM python:3.8-buster +FROM python:3.8-slim + +# https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops +ENV PYTHONUNBUFFERED=1 + +COPY requirements.txt /tmp/requirements.txt +RUN pip3 install -r /tmp/requirements.txt + + +RUN [ ! -d "/datastore" ] && mkdir /datastore + COPY sleep.py / CMD [ "python", "/sleep.py" ]