21 lines
342 B
Docker
21 lines
342 B
Docker
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"]
|
||
|