forked from Yodamt/BiliBiliHelper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (13 loc) · 738 Bytes
/
Copy pathDockerfile
File metadata and controls
18 lines (13 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.6-alpine
MAINTAINER thewanderingcoel <thewanderingcoel@protonmail.com>
ENV BILIBILI_USER="" \
BILIBILI_PASSWORD=""
WORKDIR /app
RUN apk add --no-cache git python-dev py-pip build-base && \
git clone https://github.com/TheWanderingCoel/BiliBiliHelper.git /app && \
pip install -r requirements.txt
CMD git pull && \
pip install -r requirements.txt && \
sed -i ''"$(cat Conf/Account.conf -n | grep "BILIBILI_USER =" | awk '{print $1}')"'c '"$(echo "BILIBILI_USER = ${BILIBILI_USER}")"'' Conf/Account.conf && \
sed -i ''"$(cat Conf/Account.conf -n | grep "BILIBILI_PASSWORD =" | awk '{print $1}')"'c '"$(echo "BILIBILI_PASSWORD = ${BILIBILI_PASSWORD}")"'' Conf/Account.conf && \
python ./main.py