devforge / Dockerfile
Hanzo Dev
Fix npm ci dependency issues - use legacy-peer-deps flag
f9f5cae
raw
history blame
342 Bytes
FROM node:20-slim
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies with legacy peer deps flag
RUN npm ci --legacy-peer-deps || npm install --legacy-peer-deps
# Copy application files
COPY . .
# Build the application
RUN npm run build
# Expose port
EXPOSE 3000
# Start the application
CMD ["npm", "start"]