feat(landing): Make Nuxt app deployable
This commit is contained in:
28
landing/Dockerfile
Normal file
28
landing/Dockerfile
Normal 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"]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "nuxt-app",
|
||||
"name": "legalconsenthub-landing",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user