File size: 483 Bytes
eb32fe1
 
76a64ad
eb32fe1
76a64ad
 
eb32fe1
5a50865
eb32fe1
b63f86c
eb32fe1
 
76a64ad
eb32fe1
 
76a64ad
eb32fe1
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Use a Python base image
FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Copy requirements and install them
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy your Streamlit app
COPY app.py .

# Expose the correct port for Hugging Face
EXPOSE 7860

# Use CMD with python -m to ensure it works even if streamlit is not globally linked
CMD ["python", "-m", "streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]