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

25 lines
573 B
Docker

FROM node:18-alpine
WORKDIR /app
# Copy package files
COPY backend/package*.json ./
# Install dependencies with verbose output for debugging
RUN echo "Installing dependencies..." && \
npm install --production && \
echo "Dependencies installed successfully" && \
npm list --production && \
npm cache clean --force
# Copy application code
COPY backend/src ./src
COPY frontend ./frontend
# Verify express was installed
RUN ls -la node_modules | grep express || echo "WARNING: express not found in node_modules"
EXPOSE 4001
CMD ["node", "src/server.js"]