19 lines
490 B
Docker
19 lines
490 B
Docker
FROM python:3-alpine
|
|
LABEL maintainer="x.yangtze.river@gmail.com"
|
|
|
|
ENV CRON_SIGNIN='30 9 * * *'
|
|
ENV MULTI=TRUE
|
|
ENV TZ=Asia/Shanghai
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
|
|
&& apk add --no-cache tzdata
|
|
|
|
WORKDIR /tmp
|
|
ADD requirements.txt ./
|
|
RUN apk add --no-cache gcc musl-dev python3-dev
|
|
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
|
|
|
|
WORKDIR /var/app
|
|
COPY . /var/app
|
|
|
|
CMD ["python3", "./docker.py" ]
|