From fa5268f608423953f87a4417d732514f9ea4c5aa Mon Sep 17 00:00:00 2001 From: Leonora Tindall Date: Mon, 9 Sep 2019 16:44:00 -0500 Subject: [PATCH] Move webserver source into a subdirectory. --- webserver/Dockerfile | 5 +++-- webserver/{hello.py => src/webserver.py} | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename webserver/{hello.py => src/webserver.py} (100%) diff --git a/webserver/Dockerfile b/webserver/Dockerfile index 210e9e6..4c63f8c 100644 --- a/webserver/Dockerfile +++ b/webserver/Dockerfile @@ -1,4 +1,5 @@ FROM python:3 RUN pip install -U Flask -ADD hello.py ./ -CMD ["python", "hello.py"] +WORKDIR / +ADD ./src/ /src/ +CMD ["python", "/src/webserver.py"] diff --git a/webserver/hello.py b/webserver/src/webserver.py similarity index 100% rename from webserver/hello.py rename to webserver/src/webserver.py