-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
22 lines (18 loc) · 901 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# PETPVC
FROM alpine:3.16
MAINTAINER Benjamin A. Thomas <b.a.thomas@ucl.ac.uk>
LABEL Description="PETPVC"
RUN apk --update add ca-certificates && apk upgrade
RUN apk add alpine-sdk cmake &&\
apk add linux-headers &&\
mkdir -p /opt/ITK/BUILD && cd /opt/ITK && \
git clone -b 'release' --single-branch --depth=1 https://github.com/InsightSoftwareConsortium/ITK.git && \
cd /opt/ITK/BUILD && \
cmake -DBUILD_TESTING:BOOL=OFF -DModule_ITKReview:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release /opt/ITK/ITK && \
make && \
mkdir -p /opt/PETPVC/BUILD && cd /opt/PETPVC && \
git clone https://github.com/UCL/PETPVC && \
cd BUILD && cmake -DCMAKE_BUILD_TYPE:STRING=Release -DITK_DIR=/opt/ITK/BUILD /opt/PETPVC/PETPVC && \
make && make install && ctest && cd ~ && \
rm -rf /opt/PETPVC && rm -rf /opt/ITK && \
apk del --purge alpine-sdk cmake && apk add libstdc++