Skip to content
Snippets Groups Projects
Verified Commit 1b94e86f authored by Kirill Stytsenko's avatar Kirill Stytsenko
Browse files

Use `yarn` for installing dependencies in Dockerfile

yarn pins specific versions: this resolves the issue with the sass-loader version
parent 4b6dbc1b
No related branches found
No related tags found
4 merge requests!81New stable release,!43Merge dev to master,!33Draft: merge dev to master,!31Misc stuff
......@@ -7,9 +7,10 @@ ENV NODE_ENV=production
WORKDIR /app
COPY ./package.json ./
COPY ./yarn.lock ./
# Install npm dependencies
RUN npm install > /dev/null 2>&1
# Install yarn dependencies
RUN yarn install --frozen-lockfile > /dev/null 2>&1
COPY ./nuxt.config.js ./
COPY ./.env-docker ./.env
......@@ -24,7 +25,6 @@ COPY ./plugins ./plugins
COPY ./server-middleware ./server-middleware
COPY ./static ./static
COPY ./store ./store
COPY ./yarn.lock ./
RUN yarn build > /dev/null
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment