Improvements and docker
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM node:20
|
||||
|
||||
# Set working directory inside container
|
||||
WORKDIR /src
|
||||
|
||||
# Copy package files first (for better caching)
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of your project
|
||||
COPY . .
|
||||
|
||||
# Expose Vite’s default dev port
|
||||
EXPOSE 5173
|
||||
|
||||
# Default command
|
||||
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
|
||||
|
||||
Reference in New Issue
Block a user