Files
LiamPietralla 2c4d06d746
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
Install corepack globally in the frontend Dockerfile
corepack is no longer bundled with newer Node images, so 'corepack enable'
failed with 'corepack: not found' when building the frontend image.
2026-11-16 13:18:26 +11:00

14 lines
357 B
Docker

FROM node:lts-alpine as build
WORKDIR /src
COPY ["package.json", "."]
COPY ["pnpm-lock.yaml", "pnpm-workspace.yaml", "."]
RUN npm install -g corepack && corepack enable
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
FROM node:lts-alpine as production
COPY --from=build /src/.output /app
WORKDIR /app
EXPOSE 3000
CMD ["node", "server/index.mjs"]