File size: 868 Bytes
4f9da36
 
 
 
 
 
 
 
 
 
eff52f6
4f9da36
 
 
 
eff52f6
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM estenhl/pyment-preprocessing:1.0.0

RUN mkdir -p /repos/pyment

COPY scripts /repos/pyment/scripts
COPY pyment /repos/pyment/pyment
COPY pyproject.toml /repos/pyment/
COPY README.md /repos/pyment/
COPY LICENSE.md /repos/pyment/

RUN python -m venv /envs/pyment
RUN /envs/pyment/bin/pip install --upgrade pip poetry-core build && \
    cd /repos/pyment && \
    /envs/pyment/bin/pip install --no-cache-dir .

RUN mkdir -p /.pyment/weights && \
    chmod -R 1777 /.pyment
COPY checkpoints/pyment /.pyment/weights

CMD ["/bin/sh", "-c", "\
  mkdir -p /output/fastsurfer && \
  /scripts/preprocess.sh \
    --license /licenses/freesurfer.txt \
    --python /envs/fastsurfer/bin/python \
    /input /output/fastsurfer && \
  /envs/pyment/bin/python /repos/pyment/scripts/predict_from_fastsurfer_folder.py \
    /output/fastsurfer \
    -d /output/predictions.csv \
"]