forked from TIGRLab/datman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (25 loc) · 860 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
27
28
29
30
31
32
FROM ubuntu:jammy
# Install dependencies
RUN apt update && \
apt install -y --no-install-recommends ssh wget unzip git python3.11 python3-pip && \
cd /usr/bin/ && \
ln -s python3.11 python
# Install dcm2niix/v1.0.20211006
RUN cd /tmp && \
wget https://github.com/rordenlab/dcm2niix/releases/download/v1.0.20211006/dcm2niix_lnx.zip && \
unzip -d /usr/bin/ dcm2niix_lnx.zip
# Fix for dm_sftp.py's pysftp hostkey issues
RUN mkdir /.ssh && \
ln -s /.ssh /root/.ssh && \
chmod 777 /.ssh && \
ssh-keyscan github.com >> /.ssh/known_hosts && \
chmod 666 /.ssh/known_hosts
ENV PATH="/datman/bin:${PATH}"
ENV PYTHONPATH=/datman:${PYTHONPATH}
ENV DM_CONFIG=/config/main_config.yml
ENV DM_SYSTEM=docker
COPY . /datman
RUN cd /datman && \
python -m pip install --upgrade pip && \
python -m pip install .
CMD ["/bin/bash"]