mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
a85814d20e
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
25 lines
625 B
Docker
25 lines
625 B
Docker
#
|
|
# 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
|
|
RUN apk --update add \
|
|
i3lock \
|
|
imagemagick \
|
|
py-dbus \
|
|
py-gobject \
|
|
scrot \
|
|
ttf-liberation \
|
|
xkeyboard-config \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
COPY buttslock.py buttslock.sh lock.png /
|
|
|
|
CMD ["/buttslock.py"]
|