aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-03-05 14:36:00 +0100
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-03-05 14:36:00 +0100
commit5e149c7ae0124460d3024430f1c0bdc94c74f56e (patch)
treeb0266284db3d614ca303be0d4e483367b3f2eea0
parent97d7de9af2cb6cc3bbbcae18ada738ace7771903 (diff)
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 <Fiete.Ostkamp@telekom.de>
-rw-r--r--Dockerfile6
1 files changed, 3 insertions, 3 deletions
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;"]