From e1426286c678b08295e22cd4210179c399e7b4c6 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Thu, 5 Sep 2019 10:14:30 -0700 Subject: [PATCH] add weechat-matrix Signed-off-by: Jess Frazelle --- weechat-matrix/Dockerfile | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 weechat-matrix/Dockerfile diff --git a/weechat-matrix/Dockerfile b/weechat-matrix/Dockerfile new file mode 100644 index 0000000..a925c9f --- /dev/null +++ b/weechat-matrix/Dockerfile @@ -0,0 +1,45 @@ +# Usage: +# Building +# docker build -t weechat-matrix . +# Running (no saved state) +# docker run -it \ +# -v /etc/localtime:/etc/localtime:ro \ # for your time +# weechat-matrix +# Running (saved state) +# docker run -it \ +# -v /etc/localtime:/etc/localtime:ro \ # for your time +# -v "${HOME}/.weechat:/home/user/.weechat" \ +# weechat-matrix +# +FROM alpine:latest + +RUN apk add --no-cache \ + build-base \ + ca-certificates \ + git \ + libffi-dev \ + libressl-dev \ + olm-dev \ + python \ + python-dev \ + py2-pip \ + weechat \ + weechat-perl \ + weechat-python \ + --repository https://dl-4.alpinelinux.org/alpine/edge/testing + +ENV HOME /home/user + +RUN adduser -S user -h $HOME \ + && chown -R user $HOME \ + && cd $HOME \ + && git clone https://github.com/poljar/weechat-matrix.git \ + && cd weechat-matrix \ + && pip install -r requirements.txt \ + && make install \ + && chown -R user $HOME + +WORKDIR $HOME +USER user + +ENTRYPOINT [ "weechat" ]