This commit is contained in:
2026-07-16 16:05:49 +05:30
commit be013ba380
88 changed files with 15158 additions and 0 deletions

31
Dockerfile Normal file
View File

@@ -0,0 +1,31 @@
# 1. Build Stage
FROM node:20-alpine AS build
WORKDIR /app
# Copy dependency files
COPY package*.json ./
# Install dependencies
RUN npm ci
# Copy source code
COPY . .
# Build with node-server preset (not cloudflare-module)
RUN NITRO_PRESET=node-server npm run build
# 2. Production Stage
FROM node:20-alpine
WORKDIR /app
# Copy built output from build stage
COPY --from=build /app/.output ./.output
EXPOSE 3000
ENV PORT=3000
ENV HOST=0.0.0.0
CMD ["node", ".output/server/index.mjs"]