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

refactor: Dockerfile mount

parent 02769fcc
Branches
Tags
No related merge requests found
......@@ -2,8 +2,9 @@
FROM node:23.6.1 AS builder
ENV NODE_ENV=production
WORKDIR /app
COPY package*.json ./
RUN --mount=type=secret,id=npmrc,target=/home/node/.npmrc \
RUN --mount=type=bind,source=package.json,target=package.json \
--mount=type=bind,source=package-lock.json,target=package-lock.json \
--mount=type=secret,id=npmrc,target=/home/node/.npmrc \
npm ci --omit=dev
COPY . .
RUN npm run build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment