1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-24 05:17:06 +02:00
dockerfiles/errbot/Dockerfile

36 lines
950 B
Docker
Raw Normal View History

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