-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
45 lines (35 loc) · 917 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
38
39
40
41
42
43
44
FROM ubuntu:18.04
ENV TZ=Europe/Minsk
ENV DEBIAN_FRONTEND=noninteractive
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
RUN apt-get update && apt-get install -y \
autoconf \
build-essential \
cmake \
wget \
git \
libtool \
pkg-config \
xz-utils \
# install_dependencies
libgmp-dev \
libmpfr-dev \
libflint-dev \
libflint-arb-dev libflint-arb-doc libflint-arb2 \
# install_dependencies image libraries
libpng-dev libjpeg-dev \
&& rm -rf /var/lib/apt/lists/*
ADD ./2.17.0.tar.gz /tmp
# install arb dependency
RUN cd /tmp/arb-2.17.0 \
# && ./.build_dependencies \
&& ./configure \
&& make \
&& make install \
&& rm -rf /arb-2.17.0
RUN groupadd --gid 1000 developer \
&& useradd --uid 1000 --gid developer --shell /bin/bash --create-home develop
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN cmake . && make
CMD ["./mandelbrot-test"]