Spaces:
Sleeping
Sleeping
File size: 490 Bytes
5b70875 3208c00 5b70875 3208c00 5b70875 3208c00 5b70875 3208c00 5b70875 3208c00 775ce99 5b70875 5439b66 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | FROM python:3.10-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y build-essential git && rm -rf /var/lib/apt/lists/*
# Copy dependencies
COPY requirements.txt .
# Install Python packages
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Copy your source code
COPY src/ ./src/
COPY models/ ./models/
# Run the Streamlit app
EXPOSE 7860
CMD ["streamlit", "run", "src/app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|