This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
fotochallenge/Containerfile
Valentin Brandl 9c869d8ee2
All checks were successful
/ Build App (push) Successful in 49s
Initial commit
2024-07-17 12:19:40 +02:00

16 lines
250 B
Docker

FROM node:21 AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:21
USER node:node
WORKDIR /app
COPY package.json .
COPY --from=builder /app/build ./build
CMD ["node", "./build/index.js"]