Dockerfile
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
# Use official Node.js v23.10.0 base image
|
||||
FROM node:23.10.0
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /code
|
||||
|
||||
# Copy only package files first (for better caching)
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the code
|
||||
COPY . .
|
||||
|
||||
# Expose port 8080
|
||||
EXPOSE 8080
|
||||
|
||||
# Default command
|
||||
CMD ["npm", "run", "dev"]
|
||||
|
||||
Reference in New Issue
Block a user