Skip to content

Commit

Permalink
final fix for dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dbadura committed Aug 28, 2024
1 parent c048a24 commit b2ef741
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ RUN yq -i '.version = "'${default_tag}'"' public/version.yaml && \

RUN npm run build:docker

RUN touch /app/public/active.env

# ---- Serve ----
FROM nginxinc/nginx-unprivileged:1.27.1-alpine3.20
WORKDIR /app
Expand All @@ -33,6 +31,9 @@ COPY --from=builder /app/build /app/core-ui
COPY --from=builder /app/nginx/nginx.conf /etc/nginx/
COPY --from=builder /app/nginx/mime.types /etc/nginx/

#entrypoint
COPY --from=builder --chown=nginx /app/start_nginx.sh /app/start_nginx.sh

USER root:root
RUN chown -R nginx:root /etc/nginx /app/core-ui
USER nginx:nginx
Expand Down

0 comments on commit b2ef741

Please sign in to comment.