forked from npnl/atlas2_grand_challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (18 loc) · 888 Bytes
/
Dockerfile
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
FROM python:3.9-slim
RUN groupadd -r evaluator && useradd -m --no-log-init -r -g evaluator evaluator
RUN mkdir -p /opt/evaluation /input /output \
&& chown evaluator:evaluator /opt/evaluation /input /output
RUN apt-get -y update
RUN apt-get -y install git
USER evaluator
WORKDIR /opt/evaluation
ENV PATH="/home/evaluator/.local/bin:${PATH}"
RUN python -m pip install --user -U pip
COPY --chown=evaluator:evaluator requirements.txt /opt/evaluation/
RUN python -m pip install --user -r requirements.txt
COPY --chown=evaluator:evaluator ground-truth /opt/evaluation/ground-truth
COPY --chown=evaluator:evaluator evaluation.py /opt/evaluation/
COPY --chown=evaluator:evaluator settings.py /opt/evaluation/
ADD --chown=evaluator:evaluator isles/ /opt/evaluation/isles/
ADD --chown=evaluator:evaluator sample_bids/ /opt/evaluation/sample_bids/
ENTRYPOINT "python" "-m" "evaluation"