MihoyoBBSTools/Dockerfile

20 lines
465 B
Docker
Raw Normal View History

2022-04-03 05:54:16 +00:00
FROM python:3-alpine
2021-11-06 11:06:00 +00:00
LABEL maintainer="mailto@wolfbolin.com"
2022-04-03 05:54:16 +00:00
ENV CRON_SIGNIN='30 9 * * *'
ENV MULTI=TRUE
ENV TZ=Asia/Shanghai
RUN adduser app -D
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
&& apk add --no-cache tzdata
2021-11-06 11:06:00 +00:00
2022-04-03 05:54:16 +00:00
WORKDIR /tmp
ADD requirements.txt ./
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
USER app
2021-11-06 11:06:00 +00:00
WORKDIR /var/app
COPY . /var/app
2022-04-03 05:54:16 +00:00
CMD ["python3", "./docker.py" ]