25 lines
458 B
Docker
25 lines
458 B
Docker
# Development Dockerfile for Backend (NestJS)
|
|
FROM node:20-alpine
|
|
|
|
# Install wget for healthcheck
|
|
RUN apk add --no-cache wget
|
|
|
|
# Set working directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy package files
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy tsconfig and other config files
|
|
COPY tsconfig*.json ./
|
|
COPY nest-cli.json ./
|
|
|
|
# Expose port
|
|
EXPOSE 3000
|
|
|
|
# Default command (will be overridden by docker-compose)
|
|
CMD ["npm", "run", "start:dev"]
|