File size: 925 Bytes
59e8d1c
 
 
 
 
 
046b74e
c17a485
59e8d1c
 
 
 
5316395
59e8d1c
 
 
 
 
 
 
 
0d2a25f
 
 
59e8d1c
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Use Python 3.8 slim
FROM python:3.8-slim

WORKDIR /app

# 2) Install Rasa 2.8.3 from source (patch typing-extensions)
RUN pip install --no-cache-dir 'protobuf<3.20.0' rasa==2.8.3 rasa-sdk==2.8.3

# 7) Copy in your Rasa project
COPY domain.yml config.yml endpoints.yml /app/
COPY data /app/data
COPY actions /app/actions
COPY custom_components /app/custom_components

# 9) Train your model (writes into /app/models)
RUN rasa train

# 10) Install Gradio v4 + HTTP client
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

RUN pip install --no-cache-dir numpy==1.19.5
RUN pip show numpy

# 11) Copy your Gradio wrapper
COPY app.py /app/app.py

# 12) Expose ports (actions, Rasa API, Gradio UI)
EXPOSE 5055 5005 7860

# 13) Launch everything: action server, Rasa REST API, then Gradio
ENTRYPOINT ["bash","-lc","rasa run actions & rasa run --enable-api --port 5005 & python app.py"]