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 e9e599b78f
Some checks failed
/ Build App (push) Failing after 48s
Initial commit
2024-07-17 12:17:07 +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"]