Dockerfile 752 Bytes
Newer Older
Johan Helsing's avatar
Johan Helsing committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
FROM debian:stretch
RUN apt-get update && apt-get install -y \
        build-essential \
        chrpath \
        cpio \
        diffstat \
        gcc-multilib \
        git-core \
        libsdl1.2-dev \
        libwayland-dev \
        python-crypto \
        socat \
        texinfo \
        unzip \
        vim \
Johan Helsing's avatar
Johan Helsing committed
16
        weston \
Johan Helsing's avatar
Johan Helsing committed
17 18 19 20 21 22 23 24 25 26 27 28 29
        wget

RUN id build 2>/dev/null || useradd --uid 1000 --create-home build
RUN apt-get -y install sudo
RUN echo "build ALL=(ALL) NOPASSWD: ALL" | tee -a /etc/sudoers

USER build
WORKDIR /home/build/
ENV MAKEFLAGS=-j9
COPY clone-qt.sh /home/build
RUN ./clone-qt.sh
COPY build-qt.sh /home/build
RUN ./build-qt.sh
Johan Helsing's avatar
Johan Helsing committed
30 31 32
ENV XDG_RUNTIME_DIR=/tmp
ENV QT_QPA_PLATFORM=wayland
COPY test-qt.sh /home/build
Johan Helsing's avatar
Johan Helsing committed
33 34
CMD "/bin/bash"