diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 1f89832f93..e2c3d3f528 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -41,15 +41,13 @@ HEALTHCHECK --interval=30s --timeout=10s --retries=3 --start-period=10s \ USER root +RUN apk --no-cache add shadow=4.14.2-r0 && usermod -u 10100 -o nginx && groupmod -g 10100 -o nginx + RUN rm /usr/share/nginx/html/index.html && rm /etc/nginx/conf.d/default.conf # Copy project files from ‘builder’ stage copy over the artifacts in dist folder to default nginx public folder COPY --from=builder /ng-app/dist /usr/share/nginx/html -# Copy license info into final artifact -COPY ./DEPENDENCIES_FRONTEND /usr/share/nginx/html -COPY ./SECURITY.md /usr/share/nginx/html -COPY ./NOTICE.md /usr/share/nginx/html -COPY ./LICENSE /usr/share/nginx/html + # Give ownership to nginx user over dir with content RUN chown -R nginx:nginx /usr/share/nginx/html/