2017-01-10 04:08:59 +01:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
RUN apt-get -y update
|
|
|
|
# Install dependecies
|
|
|
|
RUN apt-get install -y python3 libzbar-dev gnome-screenshot gnome-keyring git python-gobject
|
2017-01-12 22:59:42 +01:00
|
|
|
RUN pip install pyotp pyaml Pillow zbarlight setuptools
|
2017-01-10 04:08:59 +01:00
|
|
|
RUN pip install ninja
|
|
|
|
# Install latest git version of meson
|
|
|
|
RUN git clone https://github.com/mesonbuild/meson && && cd ./meson && python3 setup.py install
|
|
|
|
# Build Gnome-TwoFactorAuth usinn Meson
|
2017-01-12 22:59:42 +01:00
|
|
|
RUN git clone https://github.com/bil-elmoussaoui/Gnome-Authenticator && cd ./Gnome-Authenticator
|
2017-01-10 04:08:59 +01:00
|
|
|
RUN mkdir build && cd ./build
|
|
|
|
RUN meson .. && ninja && sudo ninja install
|
|
|
|
|
2017-01-12 22:59:42 +01:00
|
|
|
CMD gnome-authenticator
|