-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
26 lines (22 loc) · 936 Bytes
/
Dockerfile
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
FROM frolvlad/alpine-python3:latest
######## FIXME: replace dig (bind-tools) with dnspython
RUN apk add --no-cache git bind-tools && \
: "install dependencies which need compilation from packages" && \
apk add --no-cache py3-greenlet py3-gevent && \
adduser -D halflife && \
su - halflife sh -c '\
set -eu && \
git clone https://github.com/Charcoal-SE/halflife.git && \
git clone https://github.com/Charcoal-SE/SmokeDetector.git' && \
cd /home/halflife/halflife && pip install -r requirements.txt && \
pip install -r docker-requirements.txt && \
ln -s ../SmokeDetector/*_*.txt . && \
rm -rf /var/cache/apk/*
ADD halflife.conf /home/halflife/halflife
ADD docker-run-halflife /hl
ADD docker-cron-15min /etc/periodic/15min/git-pull-sd
######## TODO: package as an apk package
# https://github.com/tripleee/websocketd-alpine
ADD websocketd /usr/local/bin
EXPOSE 8888
CMD ["/hl"]