2015-09-30 23:55:36 +02:00
|
|
|
#
|
|
|
|
# This container will listen to DBus events to be notified when your
|
|
|
|
# computer goes to sleep. When such events happen, it will lock the
|
|
|
|
# screen with a fancy lock.
|
|
|
|
#
|
|
|
|
# It needs to be started with a few bind-mounts:
|
|
|
|
# - /etc/passwd, /etc/shadow (read-only)
|
|
|
|
# - /var/run/dbus, the X11 socket (typically /tmp/.X11-unix)
|
|
|
|
# And it also requires the USER and DISPLAY environment variables to be set.
|
|
|
|
#
|
|
|
|
FROM alpine
|
2016-06-06 05:40:20 +02:00
|
|
|
RUN apk --no-cache add \
|
2016-04-06 12:32:01 +02:00
|
|
|
i3lock \
|
|
|
|
imagemagick \
|
|
|
|
py-dbus \
|
|
|
|
py-gobject \
|
|
|
|
scrot \
|
|
|
|
ttf-liberation \
|
2016-06-06 05:40:20 +02:00
|
|
|
xkeyboard-config
|
2016-04-06 12:32:01 +02:00
|
|
|
|
|
|
|
COPY buttslock.py buttslock.sh lock.png /
|
|
|
|
|
|
|
|
CMD ["/buttslock.py"]
|