Commit 98eb876d authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

refactor: Dockerfile with versions for Dependabot

parent 86671471
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
# VERSIONS
ARG NODE_VERSION=20.13.1
ARG NGINX_VERSION=1.26.0

# --------------> The builder image
FROM node:$NODE_VERSION AS builder
FROM node:20.13.1 AS builder
ENV NODE_ENV=production
WORKDIR /app
# Install NPM with version
ARG NPM_VERSION=10.8.0
RUN npm install -g npm@$NPM_VERSION
RUN npm install -g npm@10.8.0
# Install dependencies
COPY package*.json ./
ARG NPM_TOKEN
@@ -20,6 +15,6 @@ COPY . .
RUN npm run build

# --------------> The production image
FROM nginxinc/nginx-unprivileged:$NGINX_VERSION AS production
FROM nginxinc/nginx-unprivileged:1.26.0 AS production
# Copy built assets from `builder` image
COPY --from=builder /app/build/ /usr/share/nginx/html/