forked from Dawnnnnnn/bilibili-live-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (18 loc) · 921 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
FROM python:3.6-alpine
MAINTAINER zsnmwy <szlszl35622@gmail.com>
ENV LIBRARY_PATH=/lib:/usr/lib \
USER_NAME='' \
USER_PASSWORD=''
WORKDIR /app
RUN apk add --no-cache --virtual bili build-base python-dev py-pip jpeg-dev zlib-dev && \
apk add --no-cache git && \
git clone https://github.com/Dawnnnnnn/bilibili-live-tools.git /app && \
pip install --no-cache-dir -r requirements.txt && \
rm -r /var/cache/apk && \
rm -r /usr/share/man && \
apk del bili
ENTRYPOINT git pull && \
pip install --no-cache-dir -r requirements.txt && \
sed -i ''"$(cat conf/bilibili.conf -n | grep "username =" | awk '{print $1}')"'c '"$(echo "username = ${USER_NAME}")"'' conf/bilibili.conf && \
sed -i ''"$(cat conf/bilibili.conf -n | grep "password =" | awk '{print $1}')"'c '"$(echo "password = ${USER_PASSWORD}")"'' conf/bilibili.conf && \
python ./run.py