Files
web-cad/backend/Dockerfile
T

23 lines
319 B
Docker
Raw Normal View History

2026-06-21 20:33:37 +00:00
# Use Node.js 22 LTS as base image
FROM node:22-alpine
2026-06-21 20:33:37 +00:00
# Set working directory
WORKDIR /app
2026-06-21 20:33:37 +00:00
# Copy package files
COPY package*.json ./
2026-06-21 20:33:37 +00:00
# Install dependencies
RUN npm ci
# Copy source code
COPY . .
2026-06-21 20:33:37 +00:00
# Build the application
RUN npm run build
# Expose port 3001
EXPOSE 3001
2026-06-21 20:33:37 +00:00
# Run the application
CMD ["npm", "start"]