19 lines
321 B
Docker
19 lines
321 B
Docker
FROM node:18-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy source code (this will be overridden by volume mount in dev)
|
|
COPY . .
|
|
|
|
# Expose port
|
|
EXPOSE 4000
|
|
|
|
# Start development server with nodemon for hot reloading
|
|
CMD ["npx", "nodemon", "src/index.js"]
|