# Base image FROM python:3.10 # Set the working directory USER root WORKDIR /app # Install NGINX RUN apt-get update && apt-get install -y nginx # Copy nginx configuration COPY nginx.conf /etc/nginx/sites-available/default # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the source code COPY ./rasa-assistant/* . COPY entrypoint.sh . # Set the permissions for the entrypoint.sh script RUN chmod +x entrypoint.sh # Expose ports EXPOSE 80 7860 5055 CMD ["rasa", "train"] # Set the entrypoint script ENTRYPOINT ["/app/entrypoint.sh"]