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

16 lines
250 B
Plaintext
Raw Normal View History

2024-07-17 00:26:05 +02:00
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"]