feat(landing): Make Nuxt app deployable

This commit is contained in:
2026-01-03 18:09:08 +01:00
parent 2754ed4724
commit a086763c80
4 changed files with 205 additions and 21 deletions

28
landing/Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
FROM node:22.16.0-alpine AS builder
WORKDIR /app
RUN npm install -g pnpm@10.13.1
COPY landing/package.json landing/pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY landing/ .
RUN pnpm build
FROM node:22.16.0-alpine AS runner
WORKDIR /app
COPY --from=builder /app/.output /app/.output
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=3000
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]

View File

@@ -1,5 +1,5 @@
{
"name": "nuxt-app",
"name": "legalconsenthub-landing",
"type": "module",
"private": true,
"scripts": {