first commit
This commit is contained in:
parent
e844e4e4f6
commit
272cd9e79e
19
Dockerfile
Normal file
19
Dockerfile
Normal 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
10
docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
keepass2:
|
||||||
|
build: ./
|
||||||
|
volumes:
|
||||||
|
- /tmp/.X11-unix:/tmp/.X11-unix
|
||||||
|
- $HOME/Documents:/data
|
||||||
|
environment:
|
||||||
|
DISPLAY: unix$DISPLAY
|
Loading…
Reference in New Issue
Block a user