-
Notifications
You must be signed in to change notification settings - Fork 36
/
Dockerfile
31 lines (31 loc) · 1.64 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
# if building on M1 uncomment the line 2, and comment out line 3
#FROM --platform=linux/amd64 ubuntu as dynadjust-build
FROM ubuntu as dynadjust-build
RUN mkdir -p /app/DynAdjust/ && mkdir -p /opt/dynadjust/geoid_file
COPY . /app/DynAdjust/
WORKDIR /app
RUN apt-get update &&\
apt-get install -y --no-install-recommends apt-utils &&\
apt-get -y --no-install-recommends install sudo &&\
DEBIAN_FRONTEND="noninteractive" &&\
apt update &&\
apt-get install -y tzdata &&\
apt-get install -y wget &&\
apt-get install -y software-properties-common &&\
apt-get install -y --no-install-recommends gnupg2 &&\
apt-get install -y --no-install-recommends p7zip &&\
apt-get install -y --no-install-recommends libboost-system-dev libboost-filesystem-dev libboost-timer-dev libboost-thread-dev libboost-program-options-dev &&\
apt-get install -y --no-install-recommends libxerces-c-dev &&\
apt-get install -y --no-install-recommends cmake &&\
apt-get install -y --no-install-recommends make &&\
apt-get install -y --no-install-recommends g++ &&\
apt-get install -y --no-install-recommends xsdcxx
RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
RUN apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
RUN add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
RUN apt install -y intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mkl-devel intel-oneapi-tbb-devel
RUN apt-get -y install cpio &&\
cd ./DynAdjust &&\
chmod +x ./resources/make_dynadjust_gcc.sh &&\
./resources/make_dynadjust_gcc.sh --auto --no-clone
RUN wget "https://s3-ap-southeast-2.amazonaws.com/geoid/AUSGeoid/AUSGeoid2020_20180201.gsb" -P "/opt/dynadjust/geoid_file"