-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (45 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
53 lines (45 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM arm32v6/python:3-alpine3.6
MAINTAINER FrozenFOXX <frozenfoxx@github.com>
# Set up environment variables
ENV ERRBOT_USER="errbot" \
LC_ALL="C.UTF-8" \
LANG="en_US.UTF-8" \
LANGUAGE="en_US.UTF-8" \
CONFIG="/srv/config.py"
# Add errbot user and group
RUN addgroup -S $ERRBOT_USER && \
adduser -S \
-g $ERRBOT_USER \
-D \
-H \
-h /app \
$ERRBOT_USER
# Install requirements
RUN apk -U add \
build-base \
git \
libffi-dev \
openssl-dev \
python3-dev \
su-exec && \
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
pip3 install -U \
errbot \
errbot[slack] \
slackclient
# Create directories
RUN mkdir \
/srv/data \
/srv/plugins \
/srv/errbackends \
/app
# Copy configuration and support scripts
COPY defaults/config-template.py /srv/config.py
COPY bin/* /app/
WORKDIR /app
RUN chown -R ${ERRBOT_USER}:${ERRBOT_USER} /srv /app
VOLUME ["/srv"]
# Expose network ports for webserver (if enabled)
EXPOSE 3141 3142
# Run the server
ENTRYPOINT /app/errbot-server