File: Dockerfile

package info (click to toggle)
errbot 6.1.7+ds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,712 kB
  • sloc: python: 13,831; makefile: 164; sh: 97
file content (21 lines) | stat: -rw-r--r-- 590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.8-slim as BUILD
WORKDIR /wheel
COPY . .
RUN pip3 wheel --wheel-dir=/wheel \
    errbot errbot[irc] errbot[slack] errbot[XMPP] errbot[telegram]

FROM python:3.8-slim
COPY --from=BUILD /wheel /wheel
RUN apt update && \
    apt install -y git && \
    cd /wheel && \
    pip3 -vv install --no-cache-dir --no-index --find-links /wheel \
    errbot errbot[irc] errbot[slack] errbot[XMPP] errbot[telegram] && \
    rm -rf /wheel /var/lib/apt/lists/*

RUN useradd -m errbot
USER errbot
EXPOSE 3141 3142
VOLUME /home/errbot
WORKDIR /home/errbot
ENTRYPOINT [ "/usr/local/bin/errbot" ]