MVP Build
This commit is contained in:
24
backend/Dockerfile.dev
Normal file
24
backend/Dockerfile.dev
Normal file
@@ -0,0 +1,24 @@
|
||||
# Development Dockerfile for MotoVaultPro Backend
|
||||
FROM node:20-alpine
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install development tools
|
||||
RUN apk add --no-cache git
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install all dependencies (including dev dependencies)
|
||||
RUN npm install
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3001
|
||||
|
||||
# Run as root for development simplicity
|
||||
# Note: In production, use proper user management
|
||||
CMD ["npm", "run", "dev"]
|
||||
Reference in New Issue
Block a user