-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
52 lines (44 loc) · 1.15 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
46
47
48
49
50
51
52
FROM ubuntu:latest
ENV NJOBS=8
ENV CONDA_HOME=/root/anaconda3
ENV PATH=${CONDA_HOME}/bin:${PATH}
ARG TARGETPLATFORM
ARG BUILDPLATFORM
# ubuntu
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get -y install \
build-essential \
cmake \
libboost-all-dev \
gcc \
clang \
gdb \
libblkid-dev \
e2fslibs-dev \
libaudit-dev \
valgrind \
ninja-build \
doxygen \
graphviz \
mscgen \
dia \
lcov \
wget
# anaconda
COPY scripts/download-conda.sh /tmp/download-conda.sh
RUN chmod +x /tmp/download-conda.sh \
&& /bin/bash /tmp/download-conda.sh \
&& /bin/bash /tmp/anaconda.sh -b -p $CONDA_HOME \
&& conda update conda -y \
&& conda update --all -y \
&& conda install -y sphinx sphinx_rtd_theme breathe -c conda-forge \
&& pip install sphinx-sitemap
RUN mkdir /project
WORKDIR /project
VOLUME [ "/project" ]
COPY scripts/build-project.sh /build/build-project.sh
RUN chmod +x /build/build-project.sh
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
CMD [ "/build/build-project.sh" ]