19 lines
382 B
Docker
19 lines
382 B
Docker
# Use Alpine-based Node.js image
|
|
FROM node:20-alpine
|
|
|
|
# Set working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Copy the entire project (from host `./reactcezenpbx` to container `/app`)
|
|
COPY . .
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Expose port 5173 (Vite dev server)
|
|
EXPOSE 5173
|
|
|
|
# Run the Vite development server with network access
|
|
CMD ["npm", "run", "dev", "--", "--host"]
|
|
|