File size: 510 Bytes
dcc1b27
0656418
dcc1b27
 
0656418
dcc1b27
 
 
 
 
0656418
dcc1b27
 
 
 
 
 
 
0656418
 
dcc1b27
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"]