dockerfiles/buttslock/Dockerfile
Marc Cornellà 7ac4881609 Use `apk --no-cache' on alpine images (#144)
This enables us to remove the following patterns that required
a `rm -rf /var/cache/apk`:

- `apk update`
- `apk add --update`
- `apk add --update-cache`

Supported since alpine 3.3.
2016-06-06 03:40:20 +00:00

24 lines
597 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 --no-cache add \
i3lock \
imagemagick \
py-dbus \
py-gobject \
scrot \
ttf-liberation \
xkeyboard-config
COPY buttslock.py buttslock.sh lock.png /
CMD ["/buttslock.py"]