1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/errbot/Dockerfile

36 lines
955 B
Docker
Raw Normal View History

2017-01-21 14:57:35 +02:00
#
# Dockerfile for errbot
#
2024-12-03 08:33:21 +02:00
FROM alpine:3.20
2024-05-14 11:22:33 +02:00
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-12-03 08:33:21 +02:00
&& pip3 config set global.break-system-packages true \
2024-05-14 12:15:03 +02:00
&& 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-12-03 08:33:21 +02:00
&& mkdir -p ~/.local/lib/python3.12/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"]