File: Dockerfile

package info (click to toggle)
scram 0.16.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,016 kB
  • sloc: xml: 120,766; cpp: 23,966; python: 1,256; ansic: 100; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 806 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:17.10
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.62.0 libboost-program-options1.62.0 \
    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"]