21 lines
292 B
Docker
21 lines
292 B
Docker
# Use Node LTS image
|
|
FROM node:18-alpine
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy dependency files
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy the rest of the app
|
|
COPY . .
|
|
|
|
# Expose development port
|
|
EXPOSE 3000
|
|
|
|
# Start the dev server
|
|
CMD ["npm", "run", "dev"]
|