Fix frontend Docker build: install corepack globally #4

Merged
LiamPietralla merged 1 commits from fix/frontend-docker-corepack into main 2026-11-16 13:18:54 +11:00
Owner

The "Push Yale Access Frontend Docker Image" job on main (run 2027) failed at RUN corepack enable with /bin/sh: corepack: not found, because corepack is no longer bundled with the node:lts-alpine image.

This installs it first: RUN npm install -g corepack && corepack enable.

Verification: not built locally (no Docker daemon available). Note that PR runs only build the app and don't build the Docker image, so the real check is the "Push Yale Access Frontend Docker Image" job after merge to main.

The "Push Yale Access Frontend Docker Image" job on `main` (run 2027) failed at `RUN corepack enable` with `/bin/sh: corepack: not found`, because corepack is no longer bundled with the `node:lts-alpine` image. This installs it first: `RUN npm install -g corepack && corepack enable`. **Verification:** not built locally (no Docker daemon available). Note that PR runs only build the app and don't build the Docker image, so the real check is the "Push Yale Access Frontend Docker Image" job after merge to `main`.
LiamPietralla added 1 commit 2026-11-16 13:18:28 +11:00
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
2c4d06d746
corepack is no longer bundled with newer Node images, so 'corepack enable'
failed with 'corepack: not found' when building the frontend image.
LiamPietralla merged commit 62420e6b51 into main 2026-11-16 13:18:54 +11:00
LiamPietralla deleted branch fix/frontend-docker-corepack 2026-11-16 13:18:54 +11:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LiamPietralla/yale-user-access#4