Debian Codegraph @

docker/Dockerfile

raw
1 FROM debian:stretch-slim
2 # The default is to build the development branch, set this to a release tag such
3 # as R_0_7_2 to get a Docker image for that version.
4 ARG DAVIX_RELEASE=devel
5
6 RUN \
7 apt-get update && \
8 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
9 git ca-certificates cmake g++ build-essential \
10 libxml2-dev libssl-dev uuid-dev python && \
11 git clone --branch "$DAVIX_RELEASE" https://github.com/cern-fts/davix.git && \
12 cd davix && \
13 git submodule update --recursive --init && \
14 mkdir build && cd build && \
15 cmake -Wno-dev .. && \
16 make && \
17 make install && \
18 ldconfig && \
19 DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y \
20 git cmake g++ libxml2-dev libssl-dev build-essential uuid-dev python && \
21 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
22 libxml2 && \
23 DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
24 apt-get clean -y && \
25 rm -rf /var/lib/apt/lists/* && \
26 cd ../.. && \
27 rm -rf davix
28 COPY *.sh /usr/local/bin/
29 ENTRYPOINT [ "/usr/local/bin/davix.sh" ]