forked from miykael/3dprintyourbrain
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
27 lines (19 loc) · 891 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
# Use freesurfer the base image
FROM freesurfer/freesurfer:7.4.1
# Copy your custom script into the container
COPY ./create_3d_brain_docker.sh /opt/create_3d_brain_docker.sh
COPY ./post_process_mesh.py /opt/post_process_mesh.py
COPY ./license.txt /usr/local/freesurfer/license.txt
# add alternative mirror, fixes issue 1
RUN sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
RUN sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
# install python and PyMeshLab
RUN yum install -y python3-pip
RUN pip3 install pymeshlab==2021.10
# Set the working directory
WORKDIR /opt
#Make your custom script executable (if needed)
RUN ["chmod", "+x", "/opt/create_3d_brain_docker.sh"]
# Define the entry point for your container
ENTRYPOINT ["/opt/create_3d_brain_docker.sh"]
CMD ["--smooth", "100", "--decimate", "290000"]