-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no ants build. use release. untested.
- Loading branch information
Showing
1 changed file
with
17 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,25 @@ | ||
# Start from Ubuntu 18.04 | ||
FROM ubuntu:18.04 | ||
|
||
# Install required dependencies | ||
# Install required packages | ||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
wget \ | ||
unzip \ | ||
build-essential \ | ||
cmake \ | ||
zlib1g-dev \ | ||
libxt-dev \ | ||
libxml2-dev \ | ||
libxslt1-dev \ | ||
libgdcm2-dev \ | ||
libpng-dev \ | ||
libjpeg-dev \ | ||
libboost-dev \ | ||
libeigen3-dev \ | ||
git \ | ||
vim | ||
apt-get install -y wget unzip | ||
|
||
# Download and install ANTs 2.3.4 | ||
WORKDIR /opt | ||
RUN wget https://github.com/ANTsX/ANTs/archive/v2.3.4.tar.gz && \ | ||
tar -zxvf v2.3.4.tar.gz && \ | ||
rm v2.3.4.tar.gz && \ | ||
cd ANTs-2.3.4 && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake .. && \ | ||
make -j 4 && \ | ||
make install && \ | ||
cd ../.. | ||
# Download ANTs 2.4.3 and install it | ||
RUN wget https://github.com/ANTsX/ANTs/releases/download/v2.4.3/ants-2.4.3-ubuntu-18.04-X64-gcc.zip && \ | ||
unzip ants-2.4.3-ubuntu-18.04-X64-gcc.zip && \ | ||
rm ants-2.4.3-ubuntu-18.04-X64-gcc.zip && \ | ||
mv ants-2.4.3-ubuntu-18.04-X64-gcc /opt/ants && \ | ||
export ANTSPATH=/opt/ants/bin/ | ||
|
||
# Set ANTSPATH environment variable | ||
ENV ANTSPATH /opt/ANTs-2.3.4/bin/ | ||
# Clone FaceOff repository and set it as the working directory | ||
RUN apt-get update && \ | ||
apt-get install -y git && \ | ||
git clone https://github.com/srikash/FaceOff.git /opt/FaceOff | ||
WORKDIR /opt/FaceOff | ||
|
||
# Clone FaceOff repository | ||
WORKDIR /opt | ||
RUN git clone https://github.com/srikash/FaceOff.git | ||
# Set ANTs path in environment variables | ||
ENV ANTSPATH=/opt/ants/bin/ | ||
|
||
# Set entry point | ||
WORKDIR /opt/FaceOff | ||
# Set entry point as FaceOff script | ||
ENTRYPOINT ["/opt/FaceOff/FaceOff"] |