mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 13:28:30 +01:00
3c1634b3d0
Signed-off-by: Jess Frazelle <acidburn@google.com>
37 lines
762 B
Docker
37 lines
762 B
Docker
# Usage:
|
|
# Building
|
|
# docker build -t wee-slack .
|
|
# Running (no saved state)
|
|
# docker run -it \
|
|
# -v /etc/localtime:/etc/localtime:ro \ # for your time
|
|
# wee-slack
|
|
# Running (saved state)
|
|
# docker run -it \
|
|
# -v /etc/localtime:/etc/localtime:ro \ # for your time
|
|
# -v "${HOME}/.weechat:/home/user/.weechat" \
|
|
# wee-slack
|
|
#
|
|
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache \
|
|
ca-certificates \
|
|
python \
|
|
py2-pip \
|
|
weechat \
|
|
weechat-perl \
|
|
weechat-python
|
|
|
|
RUN pip install websocket-client
|
|
|
|
ENV HOME /home/user
|
|
|
|
ADD https://raw.githubusercontent.com/rawdigits/wee-slack/master/wee_slack.py /home/user/.weechat/python/autoload/wee_slack.py
|
|
|
|
RUN adduser -S user -h $HOME \
|
|
&& chown -R user $HOME
|
|
|
|
WORKDIR $HOME
|
|
USER user
|
|
|
|
ENTRYPOINT [ "weechat" ]
|