File: Dockerfile

package info (click to toggle)
davix 0.8.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 37,184 kB
  • sloc: ansic: 164,612; cpp: 38,741; python: 17,726; perl: 14,124; sh: 13,458; xml: 3,567; makefile: 1,959; javascript: 885; pascal: 570; lisp: 7
file content (29 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download | duplicates (4)
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
FROM debian:stretch-slim
# The default is to build the development branch, set this to a release tag such
# as R_0_7_2 to get a Docker image for that version.
ARG DAVIX_RELEASE=devel

RUN \
    apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
        git ca-certificates cmake g++ build-essential \
        libxml2-dev libssl-dev uuid-dev python && \
    git clone --branch "$DAVIX_RELEASE" https://github.com/cern-fts/davix.git && \
    cd davix && \
    git submodule update --recursive --init && \
    mkdir build && cd build && \
    cmake -Wno-dev .. && \
    make && \
    make install && \
    ldconfig && \
    DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y \
        git cmake g++ libxml2-dev libssl-dev build-essential uuid-dev python && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
        libxml2 && \
    DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
    apt-get clean -y && \
    rm -rf /var/lib/apt/lists/* && \
    cd ../.. && \
    rm -rf davix
COPY *.sh /usr/local/bin/
ENTRYPOINT [ "/usr/local/bin/davix.sh" ]