Skip to content
Snippets Groups Projects
Commit 7e8cb2e4 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

refactor: versions for Dependabot

parent ed2d2118
No related branches found
No related tags found
No related merge requests found
# VERSIONS
ARG NODE_VERSION=20.13.1
ARG NPM_VERSION=10.8.0
# --------------> The builder image
FROM node:$NODE_VERSION AS builder
FROM node:20.13.1 AS builder
ENV NODE_ENV=production
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y --no-install-recommends dumb-init
ARG NPM_TOKEN
COPY package*.json /usr/src/app/
RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && \
npm install -g npm@$NPM_VERSION && \
npm install -g npm@$10.8.0 && \
npm ci --omit=dev && \
rm -f .npmrc
# --------------> The production image
FROM node:$NODE_VERSION-slim AS production
FROM node:20.13.1-slim AS production
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY --from=builder /usr/bin/dumb-init /usr/bin/dumb-init
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment