AI-Voice-Agent/Dockerfile
2024-11-28 18:39:11 +05:30

21 lines
532 B
Docker

# Use official Node.js image as the base image
FROM node:20-alpine
# Set the working directory inside the container
WORKDIR /app
# Copy package.json and package-lock.json first to leverage Docker cache for npm install
COPY package*.json ./
# Install the application dependencies
RUN npm install
# Copy the rest of the application files into the container
COPY . .
# Expose port 5173, which Vite uses by default
EXPOSE 5173
# Run the application with `--host 0.0.0.0` to make it accessible externally
CMD ["npm", "run", "dev"]