2017-01-21 14:57:35 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for errbot
|
|
|
|
#
|
|
|
|
|
2024-05-14 11:22:33 +02:00
|
|
|
FROM alpine:3.19
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
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 \
|
2024-05-14 12:15:03 +02:00
|
|
|
py3-pip \
|
2017-01-21 14:57:35 +02:00
|
|
|
python3 \
|
|
|
|
python3-dev \
|
2024-05-14 12:15:03 +02:00
|
|
|
&& rm -f /usr/lib/python3.11/EXTERNALLY-MANAGED \
|
|
|
|
&& pip3 install --no-cache-dir 'errbot[slack,discord,mattermost,IRC,telegram,XMPP]' \
|
2024-05-14 11:22:33 +02:00
|
|
|
&& adduser -s /bin/sh -h /opt/errbot -D errbot \
|
2017-01-21 14:57:35 +02:00
|
|
|
&& apk del --purge build-base \
|
|
|
|
libffi-dev \
|
|
|
|
openssl-dev \
|
|
|
|
python3-dev
|
|
|
|
|
|
|
|
USER errbot
|
2024-05-14 11:22:33 +02:00
|
|
|
WORKDIR /opt/errbot
|
2017-01-22 18:43:23 +02:00
|
|
|
|
|
|
|
RUN set -xe \
|
2024-05-14 11:22:33 +02:00
|
|
|
&& mkdir -p ~/.local/lib/python3.11/site-packages \
|
2017-01-22 18:43:23 +02:00
|
|
|
&& errbot --init
|
|
|
|
|
2024-05-14 11:22:33 +02:00
|
|
|
VOLUME /opt/errbot
|
2017-01-21 14:57:35 +02:00
|
|
|
|
|
|
|
ENTRYPOINT ["errbot"]
|