Skip to content

Commit

Permalink
fix(web): remove.yarnrc file mount and disable Corepack (#34)
Browse files Browse the repository at this point in the history
Signed-off-by: KeisukeYamashita <[email protected]>
  • Loading branch information
KeisukeYamashita authored Dec 1, 2024
1 parent 272cd97 commit 04544f7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,11 @@ ENV NODE_OPTIONS=$NODE_OPTIONS
ENV GITHUB_SHA=$GITHUB_SHA

RUN --mount=type=bind,source=package.json,target=package.json \
--mount=type=cache,target=/root/.npm,sharing=locked \
corepack enable

RUN --mount=type=bind,source=.yarnrc.yml,target=.yarnrc.yml \
--mount=type=bind,source=package.json,target=package.json \
--mount=type=bind,source=yarn.lock,target=yarn.lock \
--mount=type=cache,target=/root/.yarn,sharing=locked \
yarn install --frozen-lockfile

RUN --mount=type=bind,source=.yarnrc.yml,target=.yarnrc.yml \
--mount=type=bind,source=package.json,target=package.json \
RUN --mount=type=bind,source=package.json,target=package.json \
--mount=type=bind,source=yarn.lock,target=yarn.lock \
--mount=type=bind,source=index.html,target=index.html \
--mount=type=bind,source=published.html,target=published.html \
Expand Down

0 comments on commit 04544f7

Please sign in to comment.