mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 21:58:03 +08:00
19 lines
583 B
Docker
19 lines
583 B
Docker
FROM python:3.8-alpine
|
|
MAINTAINER Sitoi <Sitoi0418@gmail.com>
|
|
|
|
WORKDIR /dailycheckin
|
|
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 \
|
|
&& pip install dailycheckin --upgrade \
|
|
&& ln -s /root/.local/bin/dailycheckin /usr/bin/dailycheckin
|
|
|
|
ADD . /dailycheckin
|
|
|
|
|
|
ENTRYPOINT ["start.sh"] |