|
|
|
|
|
FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime |
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
|
libgl1 \ |
|
|
libglib2.0-0 \ |
|
|
ffmpeg \ |
|
|
git \ |
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
COPY app.py . |
|
|
COPY requirements.txt . |
|
|
COPY nnunet_model/ /app/nnunet_model/ |
|
|
|
|
|
|
|
|
RUN pip install --upgrade pip |
|
|
RUN pip install -r requirements.txt |
|
|
|
|
|
|
|
|
RUN git clone -b nnunetv2 https://github.com/MIC-DKFZ/nnUNet.git |
|
|
RUN pip install -e ./nnUNet |
|
|
|
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
|
|
|
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |
|
|
|