Skip to content

Commit 0108462

Browse files
authored
parametrize docker build arguments (#66)
1 parent 6673349 commit 0108462

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
# Build arguments
2+
ARG SOURCE_REGISTRY
3+
14
# build stage
2-
FROM node:22-alpine3.20 as build-stage
5+
FROM ${SOURCE_REGISTRY}node:22-alpine3.20 as build-stage
36
RUN apk -U upgrade
47
WORKDIR /app
58
COPY package*.json ./
@@ -8,7 +11,7 @@ COPY ./ .
811
RUN npm run build
912

1013
# production stage
11-
FROM nginx:1.26.0-alpine as production-stage
14+
FROM ${SOURCE_REGISTRY}nginx:1.26.0-alpine as production-stage
1215
RUN apk -U upgrade && \
1316
mkdir /app
1417
COPY --from=build-stage /app/dist /app

0 commit comments

Comments
 (0)