File size: 516 Bytes
0b5e429
 
 
 
 
f663c35
 
cd41c7b
184d783
 
 
09b5d8c
 
cd41c7b
0b5e429
 
 
 
 
 
 
ec455f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ARG PYTHON_VERSION=3.10.12
FROM python:${PYTHON_VERSION}-slim as base

WORKDIR /app

COPY requirements.txt .
RUN python -m pip install --no-cache-dir -r requirements.txt

# To avert Permision error with transformer and hf models
RUN mkdir ./.cache

# # Install ollama
# RUN curl -fsSL https://ollama.com/install.sh | sh

# Copy the source code into the container.
COPY . .

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

# Run the application.
CMD streamlit run app_inference.py  --server.port 7860