File size: 748 Bytes
38aab64
 
acccbe4
38aab64
b2f8bad
38aab64
 
 
 
ff5bd6a
38aab64
 
acccbe4
 
 
 
38aab64
 
bc3fa9c
ff5bd6a
 
45187b8
 
 
acccbe4
38aab64
acccbe4
38aab64
acccbe4
 
38aab64
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
# Extend the official Rasa SDK image
FROM rasa/rasa:2.2.8-full

# Change back to root user to install dependencies
USER root
RUN apt-get --allow-releaseinfo-change update
RUN apt-get -y install software-properties-common
RUN apt-get --allow-releaseinfo-change update
RUN pip3 install --upgrade setuptools pip

# Use subdirectory as working directory
WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copying training data
COPY ./rasa-assistant-2 .
COPY entrypoint.sh .
RUN mkdir models && mkdir .rasa && mkdir tests

# Set the permissions for the entrypoint.sh script
RUN chmod +x entrypoint.sh

# Expose ports
EXPOSE 5005 5055

RUN rasa train

# Set the entrypoint script
ENTRYPOINT ["/app/entrypoint.sh"]