Skip to content

Commit

Permalink
[DOS-548][ci] fix dockerfile for upstream fe image
Browse files Browse the repository at this point in the history
  • Loading branch information
rogocof committed Jun 19, 2024
1 parent ad30dda commit ec97843
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit ec97843

Please sign in to comment.