-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (26 loc) · 810 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM debian:testing-slim
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get update -y; apt-get install -q -y \
git \
libolm-dev \
python3 \
python3-pip \
weechat-curses \
weechat-python \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -fr /root/.cache
ENV HOME /home/user
RUN adduser --home $HOME --disabled-password --gecos "" user \
&& chown -R user $HOME
RUN git clone https://github.com/poljar/weechat-matrix.git \
&& cd weechat-matrix \
&& pip3 install --no-cache-dir wheel\
&& pip3 install --no-cache-dir -r requirements.txt \
&& pip3 install --no-cache-dir websocket-client \
&& make install \
&& chown -R user $HOME
ADD entrypoint.sh $HOME/entrypoint.sh
WORKDIR $HOME
USER user
CMD [ "/bin/sh", "entrypoint.sh" ]