Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
Upgrade to Yarn Berry
Browse files Browse the repository at this point in the history
See: https://yarnpkg.com/getting-started/migration

Closes: adeira/universe#1734

adeira-source-id: 682c74f1255a02a10653c8f4b790b7c8ad8612f8
  • Loading branch information
mrtnzlml authored and adeira-github-bot committed Mar 7, 2022
1 parent 5d17e96 commit ee3318e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ FROM node:17.6.0-alpine AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json ./
RUN yarn install # --frozen-lockfile
RUN yarn install # --immutable

# Rebuild the source code only when needed
FROM node:17.6.0-alpine AS builder
WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
RUN yarn build && yarn install # --immutable

# Production image, copy all the files and run next
FROM node:17.6.0-alpine AS runner
Expand Down

0 comments on commit ee3318e

Please sign in to comment.