https://github.com/crocs-muni/CryptoStreams
Revision 9faff5235182fd05b458587f5d0c7e9eab7e94df authored by Dušan Klinec on 18 September 2022, 12:54:26 UTC, committed by GitHub on 18 September 2022, 12:54:26 UTC
chore(eacirc): bump eacirc submodule to the master
2 parent s ea5341c + be6e37c
Raw File
Tip revision: 9faff5235182fd05b458587f5d0c7e9eab7e94df authored by Dušan Klinec on 18 September 2022, 12:54:26 UTC
Merge pull request #115 from crocs-muni/pr/eacirc-submod
Tip revision: 9faff52
Dockerfile
# 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"]
back to top