File size: 494 Bytes
acccbe4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fa9c
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
# 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/nginx.conf

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

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

# Expose ports
EXPOSE 80 7860 5055

CMD ["rasa", "train"]

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