All checks were successful
E2E Tests with Cypress / cypress (push) Successful in 3m12s
17 lines
345 B
Docker
17 lines
345 B
Docker
# base stage
|
|
FROM node:22-alpine AS base
|
|
WORKDIR /app
|
|
COPY . .
|
|
# add curl for healthchecks
|
|
RUN apk add --no-cache curl
|
|
|
|
# development mode stage
|
|
FROM base AS dev
|
|
RUN yarn install --frozen-lockfile
|
|
CMD ["yarn", "dev"]
|
|
|
|
# production mode stage
|
|
FROM base AS prod
|
|
RUN yarn install --production --frozen-lockfile
|
|
RUN yarn build
|
|
CMD ["yarn", "start"]
|