-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (33 loc) · 918 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
26
27
28
29
30
31
32
33
34
35
36
37
# Use an official Ubuntu as a base image
FROM ubuntu:20.04
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
# Setup timezone
RUN echo 'Etc/UTC' > /etc/timezone \
&& ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime \
&& apt-get update \
&& apt-get -y -q --no-install-recommends install \
tzdata \
&& apt-get clean
# Install dependencies
RUN apt-get update && apt-get install -y \
cmake \
clang-format \
g++ \
git \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Install Eigen 3.4.0
RUN git clone --branch 3.4.0 https://gitlab.com/libeigen/eigen.git /opt/eigen \
&& mkdir -p /opt/eigen/build && cd /opt/eigen/build \
&& cmake \
-DCMAKE_BUILD_TYPE=Release \
-DEIGEN_BUILD_DOC=OFF \
-DBUILD_TESTING=OFF \
.. \
&& make install \
&& cd /opt && rm -r /opt/eigen
# Set working directory to /app
RUN mkdir -p /home/maybe-docker
WORKDIR /home/maybe-docker