Skip to content

Commit

Permalink
Move nginx copy command to after installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Nov 7, 2024
1 parent 98fec10 commit b1804c2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docker/tna-python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b1804c2

Please sign in to comment.