Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --prefer-binary -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "export STREAMLIT_SERVER_PORT='' && PORT_TO_USE=${PORT:-7860} && echo PORT_TO_USE=$PORT_TO_USE && streamlit run app.py --server.address=0.0.0.0 --server.port=$PORT_TO_USE --server.headless=true --server.enableCORS=false --server.enableXsrfProtection=false --server.runOnSave=false --server.fileWatcherType=none"] | |