Skip to content
Snippets Groups Projects
Unverified Commit ba0f9552 authored by Dmitriy Safronov's avatar Dmitriy Safronov Committed by GitHub
Browse files

fix: envs (#20)

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