Install corepack globally in the frontend Dockerfile
Build and Publish / Build Yale Access Frontend (push) Successful in 1m9s
Build and Publish / Push Yale Access Frontend Docker Image (push) Skipped
Build and Publish / Build Yale Access Backend (push) Successful in 2m39s
Build and Publish / Build Yale Access Frontend (pull_request) Successful in 1m17s
Build and Publish / Push Yale Access Backend Docker Image (push) Skipped
Build and Publish / Push Yale Access Frontend Docker Image (pull_request) Skipped
Build and Publish / Build Yale Access Backend (pull_request) Successful in 2m21s
Build and Publish / Push Yale Access Backend Docker Image (pull_request) Skipped

corepack is no longer bundled with newer Node images, so 'corepack enable'
failed with 'corepack: not found' when building the frontend image.
This commit is contained in:
LiamPietralla committed 2026-11-16 13:18:26 +11:00
1 parent ea7fc867dd
commit 2c4d06d746
1 file changed
+1 -1
+1 -1
View File
@@ -2,7 +2,7 @@ FROM node:lts-alpine as build
WORKDIR /src
COPY ["package.json", "."]
COPY ["pnpm-lock.yaml", "pnpm-workspace.yaml", "."]
RUN corepack enable
RUN npm install -g corepack && corepack enable
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build