File size: 586 Bytes
acccbe4
 
 
 
 
 
 
 
 
ee09914
 
acccbe4
 
 
 
 
 
 
bc3fa9c
acccbe4
45187b8
 
 
acccbe4
 
 
 
 
 
 
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
# Base image
FROM python:3.10

# Set the working directory
WORKDIR /app

# Install NGINX
RUN apt-get update && apt-get install -y nginx

# Copy nginx configuration
COPY nginx.conf /etc/nginx/sites-available/default

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

# Copy the source code
COPY ./rasa-assistant/* .
COPY entrypoint.sh .

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

# Expose ports
EXPOSE 80 7860 5055

CMD ["rasa", "train"]

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