Skip to content
Snippets Groups Projects
Commit 96b9726e authored by Дмитрий Сафронов's avatar Дмитрий Сафронов
Browse files

--omit=dev

parent 0f70c5f6
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ARG NPM_TOKEN ...@@ -5,7 +5,7 @@ ARG NPM_TOKEN
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY package*.json /usr/src/app/ COPY package*.json /usr/src/app/
RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && \ RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && \
npm ci --only=production && \ npm ci --omit=dev && \
rm -f .npmrc rm -f .npmrc
# --------------> The production image # --------------> The production image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment