/
Dockerfile.ubuntu
47 lines (39 loc) · 1.29 KB
/
Dockerfile.ubuntu
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
ARG version
FROM ubuntu:${version}
ARG build_elfutils="no"
#####################################################
#
# Base container for an Ubuntu environment
#
# The dependencies are purposefully unversioned
# so that the distribution-default ones are used.
#
# If the distro's elfutils is too old, it can be
# built by using `--build-arg build_elfutils=yes`.
#
#####################################################
LABEL maintainer="@hainest,@vsoch"
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Chicago
RUN apt-get -qq update && \
apt-get -qq install -y --no-install-recommends \
build-essential \
cmake \
libboost-atomic-dev \
libboost-chrono-dev \
libboost-date-time-dev \
libboost-filesystem-dev \
libboost-thread-dev \
libboost-timer-dev \
libtbb-dev \
gettext \
bzip2 \
zlib1g-dev \
m4 \
libiberty-dev \
pkg-config \
clang \
libomp-dev
COPY docker/build_elfutils.sh docker/dependencies.versions /
RUN bash build_elfutils.sh --from-source ${build_elfutils} --jobs ${build_jobs}
RUN rm build_elfutils.sh dependencies.versions