install atropos (demo on /wait)
All checks were successful
Deploy App / deploy (push) Successful in 1m49s

This commit is contained in:
valere
2025-08-30 10:26:32 +02:00
parent d013e62fcf
commit 7a1cdf2178
55 changed files with 10731 additions and 11136 deletions

View File

@@ -1,19 +1,30 @@
# INSTALL
FROM node:18-alpine as builder
# Stage de build
FROM node:20-alpine AS build
WORKDIR /app
# Installer pnpm
RUN npm install -g pnpm
# Copier package.json et lockfile pour cache pnpm
COPY package.json pnpm-lock.yaml* ./
RUN pnpm install --frozen-lockfile
# Copier tout le projet
COPY . .
RUN npm ci && npm cache clean --force
ADD . .
# BUILD
RUN npm run build
# Build Nuxt
RUN pnpm build
# Stage production
FROM node:20-alpine
# PROD
FROM node:18-alpine
WORKDIR /app
COPY --from=builder /app/.output /app/.output
COPY --from=builder /app/.nuxt /app/.nuxt
COPY --from=builder /app/.env /app/.env
ENV HOST 0.0.0.0
COPY --from=build /app/.output .output
COPY --from=build /app/package.json ./
COPY --from=build /app/node_modules ./node_modules
EXPOSE 3000
CMD source .env && node .output/server/index.mjs
CMD ["node", ".output/server/index.mjs"]