Spaces:
Sleeping
Sleeping
FROM python:3.10 | |
WORKDIR /app | |
# Copy both requirements and constraints | |
COPY requirements.txt constraints.txt /app/ | |
# Install pinned dependencies using constraints | |
RUN pip install --no-cache-dir -r requirements.txt -c constraints.txt | |
# Copy all your code | |
COPY . /app | |
# Run Streamlit | |
CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"] | |