summary refs log tree commit diff
path: root/bitlbee/Dockerfile
blob: ea87d16284bd46b7ce493210b5ac82061c014281 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM alpine
MAINTAINER Vincent Ambo <tazjin@gmail.com>

# Install bitlbee packages
RUN apk update && \
    apk add bitlbee bitlbee-otr bitlbee-doc ca-certificates curl gnutls

# Install stunnel
RUN echo "http://dl-3.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories
RUN apk update && apk add stunnel

# Add a user for bitlbee
RUN adduser -D bitlbee

# Add bitlbee configuration
ADD bitlbee.conf /etc/bitlbee/bitlbee.conf
ADD motd.txt /etc/bitlbee/motd.txt

# Add stunnel configuration
ADD stunnel.conf /etc/bitlbee/stunnel.conf

EXPOSE 6697

CMD bitlbee -F && stunnel /etc/bitlbee/stunnel.conf