Skip to content

Commit b3cbfa5

Browse files
authored
Merge pull request #119 from fredrikj31/fix-docker-image-build
fix(docker): changes from using corepack to use npm to install pnpm
2 parents 13b2dcb + 70be7f7 commit b3cbfa5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile.backend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:20-alpine AS base
22
ENV PNPM_HOME="/pnpm"
33
ENV PATH="$PNPM_HOME:$PATH"
4-
RUN corepack enable
4+
RUN npm install -g pnpm@latest-9
55

66
FROM base AS build
77

Dockerfile.frontend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:20-alpine AS base
22
ENV PNPM_HOME="/pnpm"
33
ENV PATH="$PNPM_HOME:$PATH"
44
ENV VITE_API_BASE_URL="MY_APP_API_BASE_URL"
5-
RUN corepack enable
5+
RUN npm install -g pnpm@latest-9
66

77
FROM base AS build
88

0 commit comments

Comments
 (0)