From 5e149c7ae0124460d3024430f1c0bdc94c74f56e Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Tue, 5 Mar 2024 14:36:00 +0100 Subject: ui container unable to launch - change ownership of copied file to nginx user Issue-ID: PORTALNG-77 Change-Id: I6f9f2a5463f493c076cc6f191f093d1e6e477ef8 Signed-off-by: Fiete Ostkamp --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index b37951a..78556cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,9 +17,9 @@ USER root RUN apk add gettext # required for envsubst in docker_entrypoint.sh USER nginx -COPY server/nginx* ./ -COPY docker_entrypoint.sh . -COPY --from=builder /usr/src/app/dist/frontend /usr/share/nginx/html +COPY --chown=nginx:nginx server/nginx* ./ +COPY --chown=nginx:nginx docker_entrypoint.sh . +COPY --from=builder --chown=nginx:nginx /usr/src/app/dist/frontend /usr/share/nginx/html ENTRYPOINT ["/docker_entrypoint.sh"] EXPOSE ${NGINX_PORT} CMD ["nginx", "-g", "daemon off;"] -- cgit 1.2.3-korg