Skip to content

Commit

Permalink
changed node version
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Sep 14, 2024
1 parent 3951fc3 commit e58f1ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:20-slim AS base
#18.20.4
FROM node:18.20.4-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
Expand All @@ -10,7 +11,8 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-l

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

FROM base
COPY --from=prod-deps /app/node_modules /app/node_modules
Expand Down

0 comments on commit e58f1ad

Please sign in to comment.