2017-01-21 14:57:35 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for errbot
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM alpine
|
2017-05-08 01:05:07 +02:00
|
|
|
MAINTAINER kev <noreply@easypi.pro>
|
2017-01-21 14:57:35 +02:00
|
|
|
|
|
|
|
RUN set -xe \
|
2017-01-21 15:18:33 +02:00
|
|
|
&& apk add --no-cache ca-certificates \
|
|
|
|
build-base \
|
2017-01-21 15:57:13 +02:00
|
|
|
git \
|
2017-01-21 14:57:35 +02:00
|
|
|
libffi-dev \
|
2017-01-22 16:21:00 +02:00
|
|
|
openssl \
|
2017-01-21 14:57:35 +02:00
|
|
|
openssl-dev \
|
|
|
|
python3 \
|
|
|
|
python3-dev \
|
2017-01-22 18:43:23 +02:00
|
|
|
&& pip3 install -U pip \
|
2017-01-21 14:57:35 +02:00
|
|
|
&& pip3 install errbot \
|
|
|
|
hypchat \
|
|
|
|
irc \
|
|
|
|
pyasn1 \
|
|
|
|
pyasn1-modules \
|
|
|
|
python-telegram-bot \
|
|
|
|
slackclient \
|
|
|
|
sleekxmpp \
|
|
|
|
&& adduser -s /bin/sh -D errbot \
|
|
|
|
&& apk del --purge build-base \
|
|
|
|
libffi-dev \
|
|
|
|
openssl-dev \
|
|
|
|
python3-dev
|
|
|
|
|
|
|
|
USER errbot
|
|
|
|
WORKDIR /home/errbot
|
2017-01-22 18:43:23 +02:00
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& mkdir -p ~/.local/lib/python3.5/site-packages \
|
|
|
|
&& errbot --init
|
|
|
|
|
2017-01-21 14:57:35 +02:00
|
|
|
VOLUME /home/errbot
|
|
|
|
|
|
|
|
ENTRYPOINT ["errbot"]
|