yubioath-flutter/docker/xenial/Dockerfile
2017-03-21 10:52:29 +01:00

40 lines
1.2 KiB
Docker

FROM ubuntu:xenial
RUN apt-get update -qq
RUN apt-get install -qq software-properties-common
RUN add-apt-repository -y ppa:yubico/stable
RUN apt-get update -qq && apt-get -qq upgrade
RUN apt-get install -qq \
git \
swig \
python \
libpcsclite-dev \
libssl-dev \
libffi-dev \
libykpers-1-1 \
libu2f-host0 \
qtbase5-dev \
qtdeclarative5-dev \
libqt5svg5-dev \
python3-dev \
python3-pip \
python3-pyscard \
devscripts \
debhelper \
qt5-default \
qml-module-qtquick-controls \
qml-module-qtquick-dialogs \
qml-module-io-thp-pyotherside \
qml-module-qt-labs-settings \
python3-pip \
python3-dev \
yubikey-manager
RUN pip3 install --upgrade pip
RUN git clone --recursive https://github.com/Yubico/yubioath-desktop
RUN echo "DEFINES += QT_NO_DEBUG_OUTPUT" >> yubioath-desktop/vendor/pyotherside/src/src.pro
RUN cd yubioath-desktop/vendor/pyotherside && qmake -qt=qt5 && make && make install
RUN cd yubioath-desktop && qmake -qt=qt5 && make
RUN cd yubioath-desktop && debuild -us -uc
RUN mkdir /deploy
RUN mv /yubioath-desktop_* /deploy
RUN cd / && tar czf yubioath-desktop-debian-builds.tar.gz deploy