mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
Add KeePassXC (#232)
This commit is contained in:
parent
70479f6196
commit
9463455638
50
keepassxc/Dockerfile
Normal file
50
keepassxc/Dockerfile
Normal file
|
@ -0,0 +1,50 @@
|
|||
# keepassxc
|
||||
#
|
||||
# docker run -d \
|
||||
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||
# -v /etc/machine-id:/etc/machine-id:ro \
|
||||
# -v /usr/share/X11/xkb:/usr/share/X11/xkb/:ro
|
||||
# -e DISPLAY=unix$DISPLAY \
|
||||
# keepassxc
|
||||
#
|
||||
FROM alpine:latest
|
||||
MAINTAINER Christian Koep <christian.koep@fom-net.de>
|
||||
|
||||
ENV KEEPASSXC_VERSION 2.1.1
|
||||
|
||||
RUN buildDeps=' \
|
||||
automake \
|
||||
bash \
|
||||
cmake \
|
||||
g++ \
|
||||
gcc \
|
||||
git \
|
||||
libgcrypt-dev \
|
||||
libmicrohttpd-dev \
|
||||
make \
|
||||
qt5-qtbase-dev \
|
||||
qt5-qttools-dev \
|
||||
' \
|
||||
set -x \
|
||||
&& apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
|
||||
&& git clone --depth 1 --branch ${KEEPASSXC_VERSION} https://github.com/keepassxreboot/keepassxc.git /usr/src/keepassxc \
|
||||
&& cd /usr/src/keepassxc \
|
||||
&& mkdir build \
|
||||
&& cd build \
|
||||
&& cmake -DWITH_TESTS=ON -DWITH_XC_AUTOTYPE=ON -DWITH_XC_HTTP=ON .. \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& apk del $buildDeps \
|
||||
&& rm -rf /usr/src/keepassxc \
|
||||
&& echo "Build complete."
|
||||
|
||||
RUN apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community \
|
||||
libmicrohttpd \
|
||||
libgcrypt \
|
||||
mesa-dri-intel \
|
||||
qt5-qtbase \
|
||||
qt5-qtbase-x11 \
|
||||
qt5-qttools \
|
||||
ttf-ubuntu-font-family
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/keepassxc" ]
|
Loading…
Reference in New Issue
Block a user