File size: 1,333 Bytes
a2a29d4
 
 
 
 
 
555b8dc
a2a29d4
 
 
 
 
 
555b8dc
a2a29d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86d7996
813b51e
a2a29d4
a753d61
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
34
35
36
37
38
39
40
41
42
# syntax=docker/dockerfile:1

# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Dockerfile reference guide at
# https://docs.docker.com/engine/reference/builder/

ARG PYTHON_VERSION=3.10
FROM python:${PYTHON_VERSION}-slim as base

# Copy the requirements file into the container.
COPY requirements.txt .

# Install the dependencies from the requirements file.
RUN pip install --no-cache-dir -r requirements.txt

# Prevents Python from writing pyc files.
ENV PYTHONDONTWRITEBYTECODE=1

# Keeps Python from buffering stdout and stderr to avoid situations where
# the application crashes without emitting any logs due to buffering.
ENV PYTHONUNBUFFERED=1

WORKDIR /app
# Copy the source code into the container.
COPY . .

# Create a non-privileged user that the app will run under.
# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
# Switch to the non-privileged user to run the application.
USER 1001

# set entrypoint for interactive shells
ENTRYPOINT [ "rasa" ]

# Expose the port that the application listens on.
EXPOSE 7860

# List of Models: central+careersv1.0.tar.gz,Arpit-v1.0.tar.gz,Maisam+Arpit+Anand+Pankaj-bot-v1.0.tar.gz

# Run the application.
CMD ["run","--model","models/combined-bot-v1.5.tar.gz","--enable-api","--port","7860"]