-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (35 loc) · 1.18 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM python:3-slim
WORKDIR /code
# Upgrade system and package manager
RUN apt-get update && apt-get upgrade
# Install tools for C++
RUN apt-get install -y cmake git build-essential git-lfs gfortran libopenblas-dev bison flex libopenmpi-dev
# Copy configure file code here
# replace the environment.cmake?
COPY geode.cmake .
# get geos code
RUN git clone https://github.com/GEOS-DEV/GEOS.git && \
cd GEOS && \
git lfs install && \
git submodule init && \
git submodule deinit integratedTests && \
git submodule update
# get geos third parties -ip /usr/local
RUN git clone https://github.com/GEOS-DEV/thirdPartyLibs.git && \
cd thirdPartyLibs && \
git lfs install && \
git pull && \
git submodule init && \
git submodule update
RUN cd thirdPartyLibs && \
python scripts/config-build.py -hc /code/geode.cmake -bt Release -ip /geos && \
cd build-geode-release && \
make -j2
RUN cd GEOS && \
python scripts/config-build.py -hc /code/geode.cmake -bt Release -ip /geos && \
cd build-geode-release && \
make -j2 && \
make install
ENV PATH="$PATH:/geos/bin"
WORKDIR /
RUN rm -rf /code && apt-get purge -y cmake git build-essential git-lfs