-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·30 lines (24 loc) · 1.02 KB
/
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
FROM heroku/heroku:20
# drop just the environment in
COPY environment.yml /opt/ghostsystem/
WORKDIR /opt/ghostsystem
# get miniconda itself, and last line apply our packages
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh \
&& conda init bash \
&& conda update conda \
&& conda env create -f environment.yml
SHELL ["conda", "run", "-n", "ghostsystem", "/bin/bash", "-c"]
#RUN git clone https://github.com/cgal/cgal-swig-bindings \
# && cd cgal-swig-bindings \
# && conda run -n ghostsystem cmake -DCGAL_DIR=/usr/lib/CGAL \
# && conda run -n ghostsystem make -j 8
# up until here is 2.3 or 5gb, thankfully unfrequently updated
# actually copy the code over
COPY . /opt/ghostsystem/
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "ghostsystem", "python", "main.py"]