You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
342 B
Docker

5 months ago
FROM docker.io/node:20.15.0-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM docker.io/node:20.15.0-alpine
5 months ago
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --omit dev
COPY --from=builder /app/build /app
EXPOSE 3000
ENV NODE_ENV production
5 months ago
CMD ["node", "."]