| FROM pytorch/pytorch:2.3.1-cuda11.8-cudnn8-runtime |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| git \ |
| wget \ |
| unzip \ |
| vim \ |
| ffmpeg \ |
| libsm6 \ |
| libxext6 |
|
|
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* |
|
|
| RUN useradd -m -u 1000 user |
|
|
| USER user |
|
|
| ENV HOME=/home/user \ |
| PATH=/home/user/.local/bin:$PATH |
|
|
| WORKDIR $HOME/mapper |
|
|
| RUN pip install --no-cache-dir gradio[oauth]==4.44.0 "uvicorn>=0.14.0" spaces |
|
|
| COPY --chown=user . $HOME/mapper |
|
|
| |
| RUN pip install --no-cache-dir -r requirements.txt |
| RUN pip install fastapi==0.115.0 |
| |
| RUN bash get_weights.sh |
|
|
| |
| CMD ["python", "app.py"] |