Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
chore(ui): use nginx-unprivileged base image for the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
zsoltkacsandi committed Aug 8, 2024
1 parent fe422da commit c714550
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@ spec:
name: tmpfs-1
- mountPath: /var/cache/nginx
name: tmpfs-2
- mountPath: /tmp
name: tmpfs-3
volumes:
- name: tmpfs-1
emptyDir: {}
- name: tmpfs-2
emptyDir: {}
- name: tmpfs-3
emptyDir: {}
serviceAccountName: {{ include "vmclarity.ui.serviceAccountName" . }}
2 changes: 1 addition & 1 deletion ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN --mount=type=cache,target=/src/ui/node_modules \
RUN --mount=type=cache,target=/src/ui/node_modules \
npm run build --prefix /src/ui

FROM nginx:1.27.0@sha256:6af79ae5de407283dcea8b00d5c37ace95441fd58a8b1d2aa1ed93f5511bb18c
FROM nginxinc/nginx-unprivileged:1.27.0

COPY --from=site-build ["/src/ui/build", "/usr/share/nginx/html"]

Expand Down

0 comments on commit c714550

Please sign in to comment.