-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (23 loc) · 926 Bytes
/
Dockerfile
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
# Use the official Python image as base
FROM python:3.11
# Set the working directory
WORKDIR /EER-chatbot-UI
# Copy the requirements file
COPY requirements.txt .
# Install CPU-only version of PyTorch and torchvision
RUN pip install torch==2.1.1 torchvision==0.16.1 --index-url https://download.pytorch.org/whl/cpu
# Install other dependencies
RUN pip install --upgrade pip \
&& pip install -r requirements.txt \
&& pip install sentence-transformers
# Copy the rest of the application code
COPY . /EER-chatbot-UI
# Set the entry point for streamlit
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", \
"--server.port=80", \
"--server.headless=true", \
"--server.address=0.0.0.0", \
"--browser.gatherUsageStats=false", \
"--server.enableStaticServing=true", \
"--server.fileWatcherType=none", \
"--client.toolbarMode=viewer"]