Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

[DOS-548][ci] fix dockerfile for upstream fe image #251

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading