From 44e99221552ce90696dc6bd4506e548a921ff909 Mon Sep 17 00:00:00 2001 From: Oluwaseyi Oluwapelumi Date: Tue, 7 Jul 2020 10:34:13 +0100 Subject: [PATCH 1/2] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index c6b7930..b1a6284 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ ADD . /app # Switching to a non-root user, please refer to https://aka.ms/vscode-docker-python-user-rights RUN useradd appuser && chown -R appuser /app +RUN mkdir -p /app/static RUN python manage.py collectstatic --noinput #USER appuser From 9e8ca6292c409154fda95653e247278da6cf5dfd Mon Sep 17 00:00:00 2001 From: Oluwaseyi Oluwapelumi Date: Tue, 7 Jul 2020 10:38:56 +0100 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index b1a6284..6699083 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,9 @@ RUN python -m pip install -r requirements.txt WORKDIR /app ADD . /app +COPY . /app +#COPY ./.env /app/.env +COPY env.example /app/.env # Switching to a non-root user, please refer to https://aka.ms/vscode-docker-python-user-rights RUN useradd appuser && chown -R appuser /app