From b1804c2cceb598d0825bed11cc8e0fbbf0535b71 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Thu, 7 Nov 2024 16:09:06 +0000 Subject: [PATCH] Move nginx copy command to after installation --- docker/tna-python/Dockerfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/docker/tna-python/Dockerfile b/docker/tna-python/Dockerfile index e04ba09..618c4cc 100644 --- a/docker/tna-python/Dockerfile +++ b/docker/tna-python/Dockerfile @@ -93,13 +93,6 @@ ENV POETRY_HOME=/home/app/.local \ # ========================================== SHELL ["/bin/bash", "-o", "pipefail", "-c"] -# ========================================== -# Copy in the nginx configuration file which -# allows us to use a reverse proxy and serve -# the application through HTTPS -# ========================================== -COPY lib/nginx.conf /etc/nginx/nginx.conf - # ========================================== # 1. # Update the package index files and install @@ -149,6 +142,15 @@ RUN set -eux; \ chown app:app -R /app; \ chmod 700 /app +# ========================================== +# Copy in the nginx configuration file which +# allows us to use a reverse proxy and serve +# the app securely through HTTPS - this will +# replace the default configuration provided +# by nginx +# ========================================== +COPY lib/nginx.conf /etc/nginx/nginx.conf + # ========================================== # Set $HOME env var to be the home directory # of our new app user so we can install libs