Skip to content

Commit

Permalink
fucking corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-001 committed Feb 24, 2025
1 parent d8bb9b8 commit 1e80a6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
RUN npm install -g pnpm
COPY . /app
WORKDIR /app

Expand All @@ -13,10 +13,12 @@ FROM base AS prod-deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod

FROM base AS build
RUN npm install -g pnpm
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install
RUN pnpm run build

FROM base
RUN npm install -g pnpm
COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build /app/build /app/build

Expand Down

0 comments on commit 1e80a6c

Please sign in to comment.