forked from ImprintLab/MedSegDiff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (27 loc) · 823 Bytes
/
Dockerfile
File metadata and controls
36 lines (27 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
libsm6 \
libxext6 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
ARG GITHUB_TOKEN
# Clona vfss-data-split
COPY vfss-data-split /workspace/vfss-data-split/
# RUN git clone \
# -b CS/medsegdiff \
# https://${GITHUB_TOKEN}:x-oauth-basic@github.com/puc-rio-inca/vfss-data-split.git \
# vfss-data-split
# Instala biblioteca
WORKDIR /workspace/vfss-data-split
RUN pip install --upgrade pip && pip install .
# Clona seu fork do MedSegDiff
WORKDIR /workspace
COPY ./ /workspace/medsegdiff/
# Instala dependências do MedSegDiff
WORKDIR /workspace/medsegdiff
RUN pip install -r requirement.txt
# Garante PYTHONPATH
ENV PYTHONPATH="/workspace/medsegdiff:${PYTHONPATH}"
CMD ["bash"]