Liam Pietralla
f577617b4d
All checks were successful
Build and Publish / Build Yale Access Backend (push) Successful in 28s
Build and Publish / Build Yale Access Frontend (push) Successful in 47s
Build and Publish / Push Yale Access Backend Docker Image (push) Successful in 9s
Build and Publish / Push Yale Access Frontend Docker Image (push) Successful in 10s
13 lines
264 B
Docker
13 lines
264 B
Docker
FROM node:lts-alpine as build
|
|
WORKDIR /src
|
|
COPY ["package.json", "."]
|
|
COPY ["yarn.lock", "."]
|
|
RUN yarn install
|
|
COPY . .
|
|
RUN yarn build
|
|
|
|
FROM node:lts-alpine as production
|
|
COPY --from=build /src/.output /app
|
|
WORKDIR /app
|
|
EXPOSE 3000
|
|
CMD ["node", "server/index.mjs"] |