mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 03:21:28 +01:00
add weechat-matrix
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
This commit is contained in:
parent
03c295ba6d
commit
e1426286c6
45
weechat-matrix/Dockerfile
Normal file
45
weechat-matrix/Dockerfile
Normal file
|
@ -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" ]
|
Loading…
Reference in New Issue
Block a user