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

--omit=dev

parent cb8a92ba
Branches
Tags
No related merge requests found
...@@ -4,7 +4,7 @@ ARG NPM_TOKEN ...@@ -4,7 +4,7 @@ ARG NPM_TOKEN
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
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
COPY . . COPY . .
RUN npm run build 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