Skip to content

Commit

Permalink
Copy webapp files instead of linking them
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFerr committed Feb 24, 2025
1 parent ce3abf3 commit 75505fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ RUN cp /src/config.sample.json /src/webapp/config.json

FROM nginxinc/nginx-unprivileged:${DEBIAN_VERSION} AS nginx

COPY --from=builder /src/webapp /app

# Override default nginx config. Templates in `/etc/nginx/templates` are passed
# through `envsubst` by the nginx docker image entry point.
COPY /docker/nginx-templates/* /etc/nginx/templates/

USER root
RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html
RUN rm -rf /usr/share/nginx/html
COPY --from=builder /src/webapp /usr/share/nginx/html

# Run a no-op action of nginx to run entrypoint scripts that may tweak config files
USER nginx
Expand Down

0 comments on commit 75505fc

Please sign in to comment.