From f94e914c6c098d1ef8ce6898242661c769702e6a Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 23 Sep 2024 07:55:58 -0700 Subject: [PATCH] bean Signed-off-by: Xe Iaso --- Earthfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Earthfile b/Earthfile index 147a80b..05a6708 100644 --- a/Earthfile +++ b/Earthfile @@ -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