2017-01-22 12:42:56 -05:00
|
|
|
# KeePassXC Linux Release Build Dockerfile
|
2018-02-21 16:34:31 -05:00
|
|
|
# Copyright (C) 2017-2018 KeePassXC team <https://keepassxc.org/>
|
2017-01-22 12:42:56 -05:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 2 or (at your option)
|
|
|
|
# version 3 of the License.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2017-10-24 08:32:51 -04:00
|
|
|
FROM ubuntu:14.04
|
|
|
|
|
2018-02-07 07:10:56 -05:00
|
|
|
ENV REBUILD_COUNTER=5
|
2018-01-12 19:38:26 -05:00
|
|
|
|
2017-10-24 08:32:51 -04:00
|
|
|
ENV QT5_VERSION=59
|
2018-02-21 16:34:31 -05:00
|
|
|
ENV QT5_PPA_VERSION=${QT5_VERSION}4
|
2017-01-22 12:42:56 -05:00
|
|
|
|
2017-02-06 13:52:21 -05:00
|
|
|
RUN set -x \
|
2017-10-24 08:32:51 -04:00
|
|
|
&& apt-get update -y \
|
|
|
|
&& apt-get -y install software-properties-common
|
2017-02-06 13:52:21 -05:00
|
|
|
|
|
|
|
RUN set -x \
|
2017-11-26 07:38:53 -05:00
|
|
|
&& add-apt-repository ppa:beineri/opt-qt${QT5_PPA_VERSION}-trusty \
|
2018-01-12 19:38:26 -05:00
|
|
|
&& add-apt-repository ppa:phoerious/keepassxc
|
2017-06-25 19:40:40 -04:00
|
|
|
|
|
|
|
RUN set -x \
|
2017-10-24 08:32:51 -04:00
|
|
|
&& apt-get update -y \
|
|
|
|
&& apt-get upgrade -y
|
2017-02-06 13:52:21 -05:00
|
|
|
|
2017-10-21 11:02:46 -04:00
|
|
|
# build and runtime dependencies
|
2017-01-22 12:42:56 -05:00
|
|
|
RUN set -x \
|
2017-10-24 08:32:51 -04:00
|
|
|
&& apt-get install -y \
|
|
|
|
cmake3 \
|
|
|
|
g++ \
|
2017-11-27 22:46:03 -05:00
|
|
|
git \
|
2018-01-12 19:38:26 -05:00
|
|
|
libgcrypt20-18-dev \
|
|
|
|
libargon2-0-dev \
|
|
|
|
libsodium-dev \
|
2017-10-24 08:32:51 -04:00
|
|
|
qt${QT5_VERSION}base \
|
|
|
|
qt${QT5_VERSION}tools \
|
|
|
|
qt${QT5_VERSION}x11extras \
|
2017-12-21 13:12:51 -05:00
|
|
|
qt${QT5_VERSION}translations \
|
2017-10-24 08:32:51 -04:00
|
|
|
zlib1g-dev \
|
|
|
|
libxi-dev \
|
|
|
|
libxtst-dev \
|
2017-11-26 07:38:53 -05:00
|
|
|
mesa-common-dev \
|
|
|
|
libyubikey-dev \
|
2018-02-07 07:10:56 -05:00
|
|
|
libykpers-1-dev \
|
|
|
|
libcurl4-openssl-dev
|
2017-10-24 08:32:51 -04:00
|
|
|
|
2018-01-12 19:38:26 -05:00
|
|
|
ENV CMAKE_PREFIX_PATH="/opt/qt${QT5_VERSION}/lib/cmake"
|
|
|
|
ENV CMAKE_INCLUDE_PATH="/opt/libgcrypt20-18/include:/opt/gpg-error-127/include"
|
|
|
|
ENV CMAKE_LIBRARY_PATH="/opt/libgcrypt20-18/lib/x86_64-linux-gnu:/opt/gpg-error-127/lib/x86_64-linux-gnu"
|
|
|
|
ENV LD_LIBRARY_PATH="/opt/qt${QT5_VERSION}/lib:/opt/libgcrypt20-18/lib/x86_64-linux-gnu:/opt/gpg-error-127/lib/x86_64-linux-gnu"
|
2017-10-24 08:32:51 -04:00
|
|
|
RUN set -x \
|
2018-01-12 19:38:26 -05:00
|
|
|
&& echo "/opt/qt${QT_VERSION}/lib" > /etc/ld.so.conf.d/qt${QT5_VERSION}.conf \
|
|
|
|
&& echo "/opt/libgcrypt20-18/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/libgcrypt20-18.conf \
|
|
|
|
&& echo "/opt/gpg-error-127/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/libgpg-error-127.conf
|
2017-10-21 11:02:46 -04:00
|
|
|
|
|
|
|
# AppImage dependencies
|
|
|
|
RUN set -x \
|
2017-10-24 08:32:51 -04:00
|
|
|
&& apt-get install -y \
|
2017-11-26 07:38:53 -05:00
|
|
|
libfuse2 \
|
|
|
|
wget
|
2017-10-21 11:02:46 -04:00
|
|
|
|
2018-01-04 15:52:29 -05:00
|
|
|
RUN set -x \
|
|
|
|
&& apt-get autoremove --purge \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2017-01-22 12:42:56 -05:00
|
|
|
VOLUME /keepassxc/src
|
|
|
|
VOLUME /keepassxc/out
|
|
|
|
WORKDIR /keepassxc
|