bot / Dockerfile
atkiya110's picture
Update Dockerfile
dcc1b27 verified
raw
history blame contribute delete
510 Bytes
FROM rasa/rasa:3.6.0
WORKDIR /app
USER root
# Copy all necessary files
COPY domain.yml config.yml endpoints.yml credentials.yml /app/
COPY data /app/data
COPY actions /app/actions
COPY models /app/models
# Install any additional requirements
RUN pip install --no-cache-dir rasa[transformers]
RUN chown -R 1001:1001 /app
USER 1001
# Expose port 7860 (Hugging Face Spaces requirement)
EXPOSE 7860
# Start Rasa on port 7860
CMD ["run", "--model", "models", "--enable-api", "--cors", "*", "--port", "7860"]