20 lines
337 B
Docker
Executable File
20 lines
337 B
Docker
Executable File
FROM node:22
|
|
|
|
# Set working directory inside container
|
|
WORKDIR /app
|
|
|
|
# Copy package files first (better layer caching)
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy the rest of the project
|
|
COPY . .
|
|
|
|
# Expose Vite dev server port
|
|
EXPOSE 5173
|
|
|
|
# Default command
|
|
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
|