first commit

This commit is contained in:
Andy 2016-04-02 22:49:02 +02:00
parent e844e4e4f6
commit 272cd9e79e
Signed by: arno
GPG Key ID: 368DDA2E9A471EAC
2 changed files with 29 additions and 0 deletions

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM ubuntu
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
# To avoid problems with Dialog and curses wizards
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -yq keepass2 xdotool \
&& rm -rf /var/lib/apt/lists
ENV USER user
ENV UID 1000
ENV HOME /home/$USER
RUN useradd -u $UID -m -d $HOME -s /usr/sbin/nologin $USER
WORKDIR $HOME
USER $USER
ENTRYPOINT keepass2

10
docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: '2'
services:
keepass2:
build: ./
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- $HOME/Documents:/data
environment:
DISPLAY: unix$DISPLAY