mirror of
https://github.com/shafat-96/anicrush-api.git
synced 2026-04-17 15:51:44 +00:00
21 lines
357 B
Docker
21 lines
357 B
Docker
# Use official Node.js LTS image
|
|
FROM node:20-alpine
|
|
|
|
# Set working directory inside the container
|
|
WORKDIR /app
|
|
|
|
# Copy package files first (for caching)
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy all project files
|
|
COPY . .
|
|
|
|
# Expose port (change if needed)
|
|
EXPOSE 3000
|
|
|
|
# Default command (can be overridden)
|
|
CMD ["npm", "start"]
|