Dockerfile_ubuntu_18.04_i386 1.27 KB
Newer Older
1
FROM i386/ubuntu:18.04
aviau's avatar
aviau committed
2

3
ENV DEBIAN_FRONTEND=noninteractive
4

5
RUN apt-get clean
aviau's avatar
aviau committed
6
RUN apt-get update && \
7
    apt-get install -y -o Acquire::Retries=10 \
8
9
10
11
        ca-certificates \
        devscripts \
        dirmngr \
        equivs \
12
        gcc-8 \
13
14
15
16
17
18
19
20
21
22
23
24
        g++-8 \
        gnupg \
        wget

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/ubuntu_18.04_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

25
26
COPY packaging/rules/debian/* /tmp/builddeps/debian/
RUN cd /tmp/builddeps && \
27
28
29
30
31
32
    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
aviau's avatar
aviau committed
33

34
35
36
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 50
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 50

aviau's avatar
aviau committed
37
38
39
ADD scripts/build-package-debian.sh /opt/build-package-debian.sh

CMD /opt/build-package-debian.sh