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.
14 lines
357 B
Docker
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"] |