Dockerfile_debian_10 1.34 KB
Newer Older
Sébastien Blin's avatar
Sébastien Blin committed
1
2
FROM debian:buster

3
ENV DEBIAN_FRONTEND=noninteractive
Sébastien Blin's avatar
Sébastien Blin committed
4
5
6

RUN apt-get clean
RUN apt-get update && \
7
8
9
10
11
12
    apt-get install -y -o Acquire::Retries=10 \
        ca-certificates \
        devscripts \
        dirmngr \
        gnupg \
        wget
Sébastien Blin's avatar
Sébastien Blin committed
13

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
RUN wget -O - https://dl.jami.net/public-key.gpg | \
    tee /usr/share/keyrings/jami-archive-keyring.gpg > /dev/null
RUN sh -c "echo 'deb [signed-by=/usr/share/keyrings/jami-archive-keyring.gpg] https://dl.jami.net/nightly/debian_10_qt/ jami main' > /etc/apt/sources.list.d/libqt-jami.list"

# add deb-src entries (needed for next step)
RUN sed -n '/^deb\s/s//deb-src /p' /etc/apt/sources.list > /etc/apt/sources.list.d/deb-src.list
RUN apt-get clean && apt-get update

COPY packaging/rules/debian/* ${OVERRIDE_PACKAGING_DIR} /tmp/builddeps/debian/
RUN cd /tmp/builddeps/debian; \
    if [ -n "${OVERRIDE_PACKAGING_DIR}" ] && [ -d "$(basename ${OVERRIDE_PACKAGING_DIR})" ]; then \
        mv "$(basename ${OVERRIDE_PACKAGING_DIR})"/* .; \
        rm -r "$(basename ${OVERRIDE_PACKAGING_DIR})"; \
    fi; \
    cd ..; \
    apt-get update; \
    mk-build-deps \
        --remove --install \
        --tool "apt-get -y --no-install-recommends -o Acquire::Retries=10" \
        "debian/control"; \
    cd / && rm -rf /tmp/builddeps
Sébastien Blin's avatar
Sébastien Blin committed
35
36
37
38

ADD scripts/build-package-debian.sh /opt/build-package-debian.sh

CMD /opt/build-package-debian.sh