Spaces:
Running
Running
File size: 378 Bytes
daefc76 fd95dae daefc76 fd95dae daefc76 fd95dae daefc76 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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"]
|