[weechat] Initial commit
This commit is contained in:
parent
964e780e68
commit
22cc2a88eb
|
@ -0,0 +1,33 @@
|
|||
FROM debian:stretch-slim as builder
|
||||
ARG version=v2.3
|
||||
ENV LANG=es_ES.UTF-8
|
||||
ENV TERM=screen-256color
|
||||
RUN apt update && apt install -y git cmake libcurl3 libintl-perl zlib1g-dev \
|
||||
libcurl4-gnutls-dev libperl-dev python2.7-dev libncursesw5-dev \
|
||||
ca-certificates locales liburi-find-delimited-perl lib32ncursesw5-dev \
|
||||
tcl-dev guile-2.0-dev liblua5.1-0-dev libgcrypt20-dev libgnutls28-dev \
|
||||
ruby-dev libv8-dev libcpputest-dev asciidoctor python-pip curl locales php7.0 && \
|
||||
sed -i "s/^# $LANG/$LANG/" /etc/locale.gen && locale-gen "$LANG" && \
|
||||
update-locale LANG="$LANG" && git clone https://github.com/weechat/weechat -b $version \
|
||||
/weechat && cd /weechat && cmake . && make install
|
||||
|
||||
FROM debian:stretch-slim as production
|
||||
ENV LANG=es_ES.UTF-8
|
||||
ENV TERM=screen-256color
|
||||
RUN apt update && apt install -y libcurl3 libintl-perl \
|
||||
libcurl4-gnutls-dev libperl-dev python2.7 libncursesw5 \
|
||||
ca-certificates locales liburi-find-delimited-perl lib32ncursesw5 \
|
||||
tcl guile-2.0 liblua5.1-0 libgcrypt20 libgnutls28-dev \
|
||||
ruby libv8-3.14.5 python-pip curl locales php7.0 && \
|
||||
sed -i "s/^# $LANG/$LANG/" /etc/locale.gen && locale-gen "$LANG" && \
|
||||
update-locale LANG="$LANG" && ln -sf /usr/share/zoneinfo/Europe/Madrid \
|
||||
/etc/localtime && pip install websocket-client
|
||||
|
||||
COPY --from=builder /usr/local/bin/weechat-curses /usr/local/bin/weechat-curses
|
||||
COPY --from=builder /usr/local/bin/weechat-headless /usr/local/bin/weechat-headless
|
||||
COPY --from=builder /usr/local/bin/weechat /usr/local/bin/weechat
|
||||
COPY --from=builder /usr/local/lib/pkgconfig/weechat.pc /usr/local/lib/pkgconfig/weechat.pc
|
||||
COPY --from=builder /usr/local/lib/weechat /usr/local/lib/weechat
|
||||
COPY --from=builder /usr/local/include/weechat /usr/local/include/weechat
|
||||
|
||||
ENTRYPOINT ["weechat", "--dir", "/weechat"]
|
|
@ -0,0 +1,9 @@
|
|||
# Weechat
|
||||
|
||||
This image will expect to find your configuration files at `/weechat`. You may
|
||||
want to use this function:
|
||||
|
||||
``` bash
|
||||
docker run -ti --name weechat --rm -v ~/.weechat:/weechat --net=host \\
|
||||
registry.daemons.it/weechat
|
||||
```
|
Loading…
Reference in New Issue