www/Earthfile
Xe Iaso f3f5204aee
Some checks failed
Tests / Build and deploy (push) Failing after 18s
Gitea Actions CI / Build and deploy (push) Failing after 41s
update package lock
Signed-off-by: Xe Iaso <me@xeiaso.net>
2025-01-12 12:53:31 -05:00

34 lines
578 B
Plaintext

VERSION 0.8
FROM alpine:edge
WORKDIR /app
ENV NODE_ENV="production"
build:
RUN apk -U add build-base gyp pkgconfig python3 nodejs npm
COPY package-lock.json package.json ./
RUN npm ci --include=dev
COPY . .
RUN npm run build
RUN npm prune --omit=dev
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
EXPOSE 3000
CMD [ "node", "server.js" ]
SAVE IMAGE --push registry.int.xeserv.us/techaro/www