aleksa.sh/Dockerfile
aleksa a9b8e7bc9e
All checks were successful
E2E Tests with Cypress / cypress (push) Successful in 3m12s
initial boilerplate code
2025-04-12 07:05:13 +02:00

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"]