dockerfiles/keepass2/Dockerfile

34 lines
963 B
Docker
Raw Normal View History

# DESCRIPTION: Create keepass2 container with its dependencies
2017-04-04 09:19:34 +02:00
# AUTHOR: Christian Koep <christiankoep@gmail.com>
2015-05-22 19:50:11 +02:00
# USAGE:
# # Build keepass2 image
# docker build -t keepass2 .
2015-05-22 19:50:11 +02:00
#
# # Run the container and mount your keepass2 database file
# docker run -it \
# -v /home/$USER/DB.kdbx:/root/DB.kdbx \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -v /home/$USER/keepass2-plugins:/usr/lib/keepass2/Plugins \
# -e DISPLAY=$DISPLAY \
# keepass2 "$@"
2015-05-22 19:50:11 +02:00
#
# ISSUES:
# # 'Gtk: cannot open display: :0'
# Try to set 'DISPLAY=your_host_ip:0' or run 'xhost +' on your host.
# (see: https://stackoverflow.com/questions/28392949/running-chromium-inside-docker-gtk-cannot-open-display-0)
2015-05-22 19:50:11 +02:00
#
FROM debian:sid-slim
2017-04-04 09:19:34 +02:00
LABEL maintainer "Christian Koep <christiankoep@gmail.com>"
2016-07-18 12:07:08 +02:00
ENV DEBIAN_FRONTEND noninteractive
2015-05-22 19:50:11 +02:00
RUN apt-get update && apt-get install -y \
keepass2 \
xdotool \
mono-mcs \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/usr/bin/keepass2"]