File size: 612 Bytes
43f8a58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# Use a lightweight Python image
FROM python:3.11-slim

# Set working directory
WORKDIR /app

# Copy all files into the container
COPY . /app

# Install system dependencies (optional but useful for pandas/numpy)
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Expose the Hugging Face expected port
EXPOSE 7860

# Run Streamlit app on the correct port and interface
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]