Skip to content
Snippets Groups Projects
Commit d9e1754f authored by Yoan VALLET's avatar Yoan VALLET
Browse files

fix(docker): use yarn.lock during build

parent 4b9d0dfe
No related branches found
No related tags found
1 merge request!52Dev
Pipeline #38898 passed
......@@ -2,10 +2,11 @@
FROM node:14-alpine as build-stage
WORKDIR /app
COPY package*.json /app/
RUN npm install
COPY package.json /app/
COPY yarn.lock /app/
RUN yarn install
COPY ./ /app/
RUN npm run build
RUN yarn build
# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx
FROM nginx:1.16
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment