File size: 397 Bytes
a49e3af
48ef2e8
 
 
a49e3af
 
48ef2e8
a49e3af
 
48ef2e8
a49e3af
 
48ef2e8
 
 
a49e3af
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.10-slim

WORKDIR /app

# Install git (needed for transformers when downloading configs)
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install -r requirements.txt

# Copy all project files (model + app.py)
COPY . .

EXPOSE 8501

ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]