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