-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 821 Bytes
/
Dockerfile
File metadata and controls
31 lines (26 loc) · 821 Bytes
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
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND="noninteractive" TZ="Europe/Madrid"
RUN apt-get update && \
apt-get install -y \
build-essential \
git \
autoconf \
libtool \
pkg-config \
g++ \
gcc-9 \
wget \
gfortran
# Install updated version of cmake
ARG CMAKE_VERSION=3.23.2
RUN wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh \
-q -O /tmp/cmake-install.sh \
&& chmod u+x /tmp/cmake-install.sh \
&& mkdir /usr/bin/cmake \
&& /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake \
&& rm /tmp/cmake-install.sh
ENV PATH="/usr/bin/cmake/bin:${PATH}"
COPY . /app
WORKDIR /app
RUN chmod +x ./build.sh && ./build.sh -b Release
ENTRYPOINT [ "./bmercator" ]