-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
43 lines (34 loc) · 891 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
# initialize from the image
ARG BASE_IMAGE=ubuntu:16.04
FROM ${BASE_IMAGE} AS tbuilder
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Prague
RUN set -ex && \
apt-get update && \
apt-get --no-install-recommends --yes install \
ca-certificates \
cmake \
g++ \
git \
make \
pkg-config \
libboost-random-dev
## Packager cleanup, best practices
RUN set -ex && rm -rf /var/lib/apt/lists/*
ARG NBPROC
WORKDIR /src
COPY . .
ARG NPROC
FROM tbuilder AS cryptostreams
RUN set -ex \
&& git submodule update --recursive --init \
&& rm -rf build \
&& mkdir -p build \
&& cd build \
&& cmake .. \
&& make -j${NPROC:-`nproc`} \
&& mkdir -p /data
WORKDIR /data
# In order to bypass entrypoint pass the folowing param
# to the docker run command: --entrypoint bash
ENTRYPOINT ["/src/build/crypto-streams"]