From 75505fc85d4fbad460a7198e805c682c410734c9 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Mon, 24 Feb 2025 11:16:45 -0500 Subject: [PATCH] Copy webapp files instead of linking them --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d63a180c3b4..fbea2475123 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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