forked from rakhimov/scram
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
19 lines (19 loc) · 806 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:18.04
ENV BUILD_PACKAGES \
make cmake g++ libxml2-dev \
libgoogle-perftools-dev libboost-program-options-dev \
libboost-math-dev libboost-random-dev libboost-filesystem-dev \
libboost-date-time-dev
ENV RUNTIME_PACKAGES \
libxml2 libboost-filesystem1.65.1 libboost-program-options1.65.1 \
libtcmalloc-minimal4
ADD . scram/
RUN apt-get update && \
apt-get install -y --no-install-recommends $BUILD_PACKAGES && \
cd scram && mkdir -p build && cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_GUI=OFF && make install && \
cd ../.. && rm -rf ./scram && \
apt-get remove --purge -y $BUILD_PACKAGES $(apt-mark showauto) && \
apt-get install -y --no-install-recommends $RUNTIME_PACKAGES && \
rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["scram"]