Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso 2024-09-23 07:55:58 -07:00
parent 0aa53b3207
commit f94e914c6c
Signed by: xe
SSH Key Fingerprint: SHA256:7EWsWanxCI427bJ0t3CA6LyqXnkPajReCxkUhbpJULU

View File

@ -1,7 +1,6 @@
VERSION 0.8
ARG NODE_VERSION=22
FROM node:${NODE_VERSION}-alpine
FROM alpine:edge
WORKDIR /app
@ -9,7 +8,7 @@ ENV NODE_ENV="production"
build:
RUN apk -U add build-base gyp pkgconfig python3
RUN apk -U add build-base gyp pkgconfig python3 nodejs npm
COPY package-lock.json package.json ./
RUN npm ci --include=dev
@ -23,6 +22,8 @@ build:
SAVE ARTIFACT /app
run:
RUN apk -U add nodejs
COPY +build/app/.next/standalone /app
COPY +build/app/.next/static /app/.next/static
COPY +build/app/public /app/public