Skip to content

Commit

Permalink
Dockerfile: uses Yarn binary
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez committed Oct 25, 2023
1 parent 1470695 commit 21d1aa4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ WORKDIR /app
COPY .yarn ./.yarn
COPY package.json yarn.lock .yarnrc.yml ./

RUN corepack enable && corepack prepare
RUN yarn install

# If using npm with a `package-lock.json` comment out above and use below instead
Expand Down
3 changes: 1 addition & 2 deletions frontend/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ FROM node:18.15-bullseye AS deps

WORKDIR /app

# COPY .yarn ./.yarn # TODO: no idea if we want this or not, not in repo
COPY .yarn ./.yarn
COPY package.json yarn.lock .yarnrc.yml ./

RUN corepack enable && corepack prepare
RUN yarn install

# If using npm with a `package-lock.json` comment out above and use below instead
Expand Down

0 comments on commit 21d1aa4

Please sign in to comment.