dailycheckin/docker/Dockerfile
2021-05-23 23:17:45 +08:00

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"]