2017-03-09 14:27:09 +03:00
|
|
|
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 \
|
2017-03-21 12:52:29 +03:00
|
|
|
qml-module-qt-labs-settings \
|
2017-03-09 14:27:09 +03:00
|
|
|
python3-pip \
|
2017-11-08 18:37:57 +03:00
|
|
|
python3-dev
|
2017-03-09 14:27:09 +03:00
|
|
|
RUN pip3 install --upgrade pip
|
2017-09-15 11:20:52 +03:00
|
|
|
COPY . yubioath-desktop
|
2017-11-08 18:37:57 +03:00
|
|
|
RUN tar xfa yubioath-desktop/ykman-deb.tar.gz
|
|
|
|
RUN dpkg -i /deb/python3-yubikey-manager_*.deb; exit 0
|
|
|
|
RUN dpkg -i /deb/yubikey-manager_*.deb; exit 0
|
|
|
|
RUN apt-get install -f -qq
|
2017-03-09 14:27:09 +03:00
|
|
|
RUN cd yubioath-desktop && qmake -qt=qt5 && make
|
|
|
|
RUN cd yubioath-desktop && debuild -us -uc
|
2017-09-15 11:20:52 +03:00
|
|
|
RUN mv /yubioath-desktop_* /deb
|
|
|
|
RUN cd / && tar czf yubioath-desktop-debian-packages.tar.gz deb
|