feat(deploy): add release manifest with pinned base image digests
This commit is contained in:
1 parent
ea0982a762
commit
a0551a34b8
18 files changed
+2316
-21
No files matched your search
+7
-2
@@ -1,4 +1,9 @@
|
||||
FROM node:alpine AS build
|
||||
# Base images are build arguments so that make -C deploy release-build can pin
|
||||
# each one to the digest it resolved; the defaults keep the agreed tags.
|
||||
ARG NODE_IMAGE=node:alpine
|
||||
ARG NGINX_IMAGE=nginxinc/nginx-unprivileged:alpine
|
||||
|
||||
FROM ${NODE_IMAGE} AS build
|
||||
|
||||
WORKDIR /workspace/frontend
|
||||
RUN npm install --global pnpm@12.9.1
|
||||
@@ -9,7 +14,7 @@ RUN pnpm install --frozen-lockfile
|
||||
COPY frontend/ ./
|
||||
RUN pnpm run build
|
||||
|
||||
FROM nginxinc/nginx-unprivileged:alpine
|
||||
FROM ${NGINX_IMAGE}
|
||||
|
||||
COPY --from=build /workspace/frontend/dist/ /usr/share/nginx/html/
|
||||
COPY deploy/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
Reference in new issue
Block a user