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-10-19 14:42:49 -04:00
|
|
|
ENV REBUILD_COUNTER=10
|
2018-01-12 19:38:26 -05:00
|
|
|
|
2018-09-26 16:46:59 -04:00
|
|
|
ENV QT5_VERSION=qt510
|
|
|
|
ENV QT5_PPA_VERSION=qt-5.10.1
|
2018-09-22 14:05:59 -04:00
|
|
|
ENV TERM=xterm-256color
|
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 \
|
2019-01-18 21:55:46 -05:00
|
|
|
&& apt-get -y install software-properties-common \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2017-02-06 13:52:21 -05:00
|
|
|
|
|
|
|
RUN set -x \
|
2018-09-26 16:46:59 -04:00
|
|
|
&& add-apt-repository ppa:beineri/opt-${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
|
|
|
|
2017-10-21 11:02:46 -04:00
|
|
|
# build and runtime dependencies
|
2017-01-22 12:42:56 -05:00
|
|
|
RUN set -x \
|
2019-01-18 21:55:46 -05:00
|
|
|
&& apt-get update -y \
|
|
|
|
&& apt-get upgrade -y \
|
2017-10-24 08:32:51 -04:00
|
|
|
&& apt-get install -y \
|
|
|
|
cmake3 \
|
2018-09-26 16:46:59 -04:00
|
|
|
curl \
|
2017-10-24 08:32:51 -04:00
|
|
|
g++ \
|
2017-11-27 22:46:03 -05:00
|
|
|
git \
|
2018-01-12 19:38:26 -05:00
|
|
|
libargon2-0-dev \
|
2018-02-26 19:23:31 -05:00
|
|
|
libcurl-no-gcrypt-dev \
|
2019-01-18 21:55:46 -05:00
|
|
|
libfuse2 \
|
|
|
|
libgcrypt20-18-dev \
|
|
|
|
libqrencode-dev \
|
|
|
|
libsodium-dev \
|
|
|
|
libxi-dev \
|
|
|
|
libxtst-dev \
|
|
|
|
libyubikey-dev \
|
|
|
|
libykpers-1-dev \
|
|
|
|
mesa-common-dev \
|
|
|
|
xclip \
|
|
|
|
xvfb \
|
|
|
|
zlib1g-dev \
|
|
|
|
# ubuntu:14.04 has no quazip, put here as placeholder
|
|
|
|
# libquazip5-dev
|
2018-09-26 16:46:59 -04:00
|
|
|
${QT5_VERSION}base \
|
|
|
|
${QT5_VERSION}tools \
|
|
|
|
${QT5_VERSION}x11extras \
|
|
|
|
${QT5_VERSION}translations \
|
|
|
|
${QT5_VERSION}imageformats \
|
2018-10-19 14:42:49 -04:00
|
|
|
${QT5_VERSION}svg \
|
2019-01-18 21:55:46 -05:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2017-10-24 08:32:51 -04:00
|
|
|
|
2018-09-26 16:46:59 -04:00
|
|
|
ENV PATH="/opt/${QT5_VERSION}/bin:${PATH}"
|
|
|
|
ENV CMAKE_PREFIX_PATH="/opt/${QT5_VERSION}/lib/cmake"
|
2018-02-26 19:23:31 -05:00
|
|
|
ENV CMAKE_INCLUDE_PATH="/opt/keepassxc-libs/include"
|
|
|
|
ENV CMAKE_LIBRARY_PATH="/opt/keepassxc-libs/lib/x86_64-linux-gnu"
|
|
|
|
ENV CPATH="${CMAKE_INCLUDE_PATH}"
|
2018-09-26 16:46:59 -04:00
|
|
|
ENV LD_LIBRARY_PATH="${CMAKE_LIBRARY_PATH}:/opt/${QT5_VERSION}/lib"
|
2018-02-26 19:23:31 -05:00
|
|
|
|
2017-10-24 08:32:51 -04:00
|
|
|
RUN set -x \
|
2018-09-26 16:46:59 -04:00
|
|
|
&& echo "/opt/${QT5_VERSION}/lib" > /etc/ld.so.conf.d/${QT5_VERSION}.conf \
|
2018-02-26 19:23:31 -05:00
|
|
|
&& echo "/opt/keepassxc-libs/lib/x86_64-linux-gnu" > /etc/ld.so.conf.d/keepassxc.conf
|
2017-10-21 11:02:46 -04:00
|
|
|
|
2018-09-26 16:46:59 -04:00
|
|
|
RUN set -x \
|
|
|
|
&& curl -L "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" > /usr/bin/linuxdeploy \
|
|
|
|
&& curl -L "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage" > /usr/bin/linuxdeploy-plugin-qt \
|
|
|
|
&& curl -L "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" > /usr/bin/appimagetool \
|
|
|
|
&& chmod +x /usr/bin/linuxdeploy \
|
|
|
|
&& chmod +x /usr/bin/linuxdeploy-plugin-qt \
|
|
|
|
&& chmod +x /usr/bin/appimagetool
|
2017-10-21 11:02:46 -04:00
|
|
|
|
2017-01-22 12:42:56 -05:00
|
|
|
VOLUME /keepassxc/src
|
|
|
|
VOLUME /keepassxc/out
|
|
|
|
WORKDIR /keepassxc
|