Files
WebNationsGlory_ServeurBuil…/Dockerfile
2026-02-05 00:16:43 +01:00

21 lines
446 B
Docker

FROM node:18-alpine
WORKDIR /app
# Copy package files
COPY backend/package*.json ./
# Install dependencies with npm ci for reproducibility
RUN npm ci --only=production || npm install --production
# Verify critical dependencies are installed
RUN test -d node_modules/express || (echo "ERROR: express not installed" && exit 1)
# Copy application code
COPY backend/src ./src
COPY frontend ./frontend
EXPOSE 4001
CMD ["node", "src/server.js"]