Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametrize docker build arguments #66

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Build arguments
ARG SOURCE_REGISTRY

# build stage
FROM node:22-alpine3.20 as build-stage
FROM ${SOURCE_REGISTRY}node:22-alpine3.20 as build-stage
RUN apk -U upgrade
WORKDIR /app
COPY package*.json ./
Expand All @@ -8,7 +11,7 @@ COPY ./ .
RUN npm run build

# production stage
FROM nginx:1.26.0-alpine as production-stage
FROM ${SOURCE_REGISTRY}nginx:1.26.0-alpine as production-stage
RUN apk -U upgrade && \
mkdir /app
COPY --from=build-stage /app/dist /app
Expand Down
Loading