| |
| FROM nvidia/cuda:12.1-devel-ubuntu22.04 |
|
|
| ENV DEBIAN_FRONTEND=noninteractive |
| ENV PYTHONDONTWRITEBYTECODE=1 |
| ENV PYTHONUNBUFFERED=1 |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| python3.11 python3.11-dev python3.11-venv \ |
| python3-pip \ |
| git \ |
| wget \ |
| libgl1-mesa-glx \ |
| libglib2.0-0 \ |
| libsm6 \ |
| libxext6 \ |
| libxrender-dev \ |
| libgomp1 \ |
| ffmpeg \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 |
| RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 |
|
|
| |
| RUN python -m pip install --upgrade pip setuptools wheel |
|
|
| |
| WORKDIR /app |
|
|
| |
| COPY pyproject.toml . |
| RUN pip install -e ".[dev,gs]" |
|
|
| |
| COPY . . |
|
|
| |
| |
|
|
| |
| EXPOSE 8000 7860 |
|
|
| |
| CMD ["python", "-m", "interiorfusion.api.main"] |
|
|