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

36 lines
950 B
Docker

#
# Dockerfile for errbot
#
FROM alpine:3.19
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add --no-cache ca-certificates \
build-base \
git \
libffi-dev \
openssl \
openssl-dev \
py3-pip \
python3 \
python3-dev \
&& rm -f /usr/lib/python3.11/EXTERNALLY-MANAGED \
&& pip3 install --no-cache-dir 'errbot[slack,discord,mattermost,IRC,telegram,XMPP]' \
&& adduser -s /bin/sh -h /opt/errbot -D errbot \
&& apk del --purge build-base \
libffi-dev \
openssl-dev \
python3-dev
USER errbot
WORKDIR /opt/errbot
RUN set -xe \
&& mkdir -p ~/.local/lib/python3.11/site-packages \
&& errbot --init
VOLUME /opt/errbot
ENTRYPOINT ["errbot"]