Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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