refact: use only server

This commit is contained in:
2025-08-27 13:28:50 +02:00
parent cf8a37f183
commit 2934224787
39 changed files with 6843 additions and 1223 deletions

View File

@@ -1,12 +1,21 @@
FROM node:18-alpine
FROM node:20-slim
WORKDIR /app
COPY package.json ./
RUN npm install
# Install curl for health checks
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Install dependencies for better caching
COPY package.json package-lock.json* ./
RUN npm ci || npm install
# Copy source code
COPY . .
# Build the application for production
RUN npm run build
EXPOSE 3000
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
# For production, serve the built files
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "3000"]