-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 776 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (18 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# node:lts-alpine on 04/16/2026
FROM node@sha256:d1b3b4da11eefd5941e7f0b9cf17783fc99d9c6fc34884a665f40a06dbdfc94f AS build
WORKDIR /app
RUN corepack enable
COPY package.json pnpm-*.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
ARG SERVICE_NAME=sfkit-react-dev
RUN cp config/${SERVICE_NAME}.json public/appConfig.json
RUN pnpm run lint
RUN pnpm run build
ARG APP_VERSION=latest
ARG BUILD_VERSION=latest
RUN echo "{\"appVersion\": \"$APP_VERSION\", \"buildVersion\": \"$BUILD_VERSION\"}" > dist/version
# cgr.dev/chainguard/nginx:latest on 04/17/2026
FROM cgr.dev/chainguard/nginx@sha256:4f95b13f583eff562608d0822bb03acc15829a681b86fa8cd454c20067e06f3c
COPY nginx.conf /etc/nginx/conf.d/nginx.default.conf
COPY --from=build /app/dist /usr/share/nginx/html/