Spaces:
Paused
Paused
| FROM nvidia/cuda:12.4.1-runtime-ubuntu22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PYTHONUNBUFFERED=1 | |
| # Install Python 3.12 | |
| RUN apt-get update && apt-get install -y \ | |
| software-properties-common \ | |
| && add-apt-repository ppa:deadsnakes/ppa \ | |
| && apt-get update && apt-get install -y \ | |
| python3.12 \ | |
| python3.12-venv \ | |
| python3.12-dev \ | |
| curl \ | |
| && curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12 \ | |
| && ln -sf /usr/bin/python3.12 /usr/bin/python \ | |
| && apt-get clean && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN python -m pip install --no-cache-dir --ignore-installed -r requirements.txt | |
| COPY . . | |
| EXPOSE 8501 | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |