docker builds

This commit is contained in:
2026-01-16 16:03:43 +00:00
parent 99a2fff3ff
commit 8d741e94db
4 changed files with 45 additions and 0 deletions

23
Dockerfile.nuxt Normal file
View File

@@ -0,0 +1,23 @@
FROM node:22-alpine AS build
WORKDIR /app
RUN corepack enable
COPY . /app/
RUN pnpm i
RUN pnpm build
FROM node:22-alpine
# Only `.output` folder is needed from the build stage
COPY --from=build /app/.output/ ./
# Change the port and host
ENV PORT=80
ENV HOST=0.0.0.0
EXPOSE 80
CMD ["node", "/app/server/index.mjs"]