-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.webui
More file actions
19 lines (14 loc) · 854 Bytes
/
Copy pathDockerfile.webui
File metadata and controls
19 lines (14 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# syntax=docker/dockerfile:1
FROM --platform=$BUILDPLATFORM node:24-alpine3.24@sha256:d32cdf619f63fe0471182d08996dd516c6275bb5fd31ae06e55a570bd9e1ad43 AS builder
WORKDIR /app
# See, https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#node-gyp-alpine
RUN apk add --no-cache python3 make g++
# Copy `package.json` file from the component, to just install dependencies.
COPY ["components/secutils-webui/*.json", "./"]
RUN set -x && npm ci
# Now copy the rest of the component files and build it.
COPY ["components/secutils-webui", "./"]
RUN set -x && npm run build
FROM nginxinc/nginx-unprivileged:alpine3.24-slim@sha256:f08c8378b2ac3a544e3e9ee664c3efb733b5aa53c774ca4ec8d5d0cc641d9e88
COPY --from=builder ["/app/dist/", "/usr/share/nginx/html/"]
COPY ["components/secutils-webui/config/nginx.conf", "/etc/nginx/conf.d/default.conf"]