Add Containerfile

main
trivernis 6 months ago
parent 62636f9804
commit 4ebfe769af
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 7E6D18B61C8D2F4B

@ -0,0 +1,19 @@
FROM docker.io/node:20.5.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.5.0-alpine
WORKDIR /app
COPY package.json package-lock.json .
RUN npm ci --omit dev
COPY --from=builder /app/build /app
CMD ["node", "."]
Loading…
Cancel
Save