diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-03-05 14:36:00 +0100 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-03-05 14:36:00 +0100 |
commit | 5e149c7ae0124460d3024430f1c0bdc94c74f56e (patch) | |
tree | b0266284db3d614ca303be0d4e483367b3f2eea0 | |
parent | 97d7de9af2cb6cc3bbbcae18ada738ace7771903 (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-- | Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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;"] |