Initial commit: MOPC platform with Docker deployment setup
Full Next.js 15 platform with tRPC, Prisma, PostgreSQL, NextAuth. Includes production Dockerfile (multi-stage, port 7600), docker-compose with registry-based image pull, Gitea Actions CI workflow, nginx config for portal.monaco-opc.com, deployment scripts, and DEPLOYMENT.md guide. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
34
docker/Dockerfile.dev
Normal file
34
docker/Dockerfile.dev
Normal file
@@ -0,0 +1,34 @@
|
||||
# =============================================================================
|
||||
# MOPC Platform - Development Dockerfile (Pre-built)
|
||||
# =============================================================================
|
||||
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies for Prisma and development
|
||||
RUN apk add --no-cache libc6-compat openssl
|
||||
|
||||
# Copy package files
|
||||
COPY package.json package-lock.json* ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install && npm install tailwindcss-animate
|
||||
|
||||
# Copy prisma schema for generation
|
||||
COPY prisma ./prisma
|
||||
|
||||
# Generate Prisma client
|
||||
RUN npx prisma generate
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
# Build the application at build time (pre-compile everything)
|
||||
RUN npm run build
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
# Start production server (uses pre-built files)
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user