mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 21:58:03 +08:00
22 lines
689 B
Docker
22 lines
689 B
Docker
FROM python:3.8-alpine
|
|
MAINTAINER Sitoi <Sitoi0418@gmail.com>
|
|
|
|
WORKDIR /dailycheckin
|
|
|
|
#GitHub Actions 构建
|
|
COPY ./docker/start.sh /usr/local/bin
|
|
#本地构建
|
|
#COPY ./start.sh /usr/local/bin
|
|
|
|
RUN set -ex \
|
|
&& apk update && apk upgrade\
|
|
&& apk add --no-cache tzdata moreutils git gcc g++ py-pip mysql-dev linux-headers libffi-dev openssl-dev\
|
|
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|
&& echo "Asia/Shanghai" > /etc/timezone \
|
|
&& chmod +x /usr/local/bin/start.sh \
|
|
&& git clone https://github.com/Sitoi/dailycheckin.git /dailycheckin \
|
|
&& cd /dailycheckin \
|
|
&& mkdir logs \
|
|
&& pip install -r requirements.txt
|
|
|
|
ENTRYPOINT ["start.sh"] |