chatbot / Dockerfile
manasagangotri's picture
Update Dockerfile
874b982 verified
raw
history blame
521 Bytes
# Use an official Python image as the base
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy project files
COPY . /app
# Install system dependencies
RUN apt-get update && apt-get install -y curl
# Install Python dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Install Rasa
RUN pip install rasa
# Train Rasa model (if not already trained)
RUN rasa train
# Expose ports
EXPOSE 5005 7860
# Start both Rasa and Gradio
CMD rasa run --enable-api --cors "*" & python app.py