File size: 805 Bytes
cc279f2
38aab64
acccbe4
cc279f2
b2f8bad
cc279f2
38aab64
ff5bd6a
271ea5a
 
 
 
cc279f2
38aab64
acccbe4
cc279f2
acccbe4
 
 
cc279f2
 
bc3fa9c
ff5bd6a
cc279f2
45187b8
 
cc279f2
38aab64
acccbe4
3e55ef8
 
271ea5a
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 Rasa full image
FROM rasa/rasa:2.2.8-full

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

# Set environment variables to fix Matplotlib and TensorFlow warnings
ENV MPLCONFIGDIR=/tmp/matplotlib
ENV TF_CPP_MIN_LOG_LEVEL=2

# Set work directory
WORKDIR /app

# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy all project files
COPY ./rasa-assistant-2 .  
COPY entrypoint.sh .

# Ensure script permissions
RUN chmod +x entrypoint.sh

# Expose necessary ports
EXPOSE 5005 5055

# Use ENTRYPOINT to ensure our script runs as intended
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"]