dailycheckin/docker/Dockerfile

17 lines
496 B
Docker
Raw Permalink Normal View History

FROM python:3.9-alpine
2020-12-12 09:47:32 +08:00
2020-12-15 13:17:45 +08:00
WORKDIR /dailycheckin
COPY ./start.sh /usr/local/bin
2020-12-12 09:47:32 +08:00
2020-12-15 13:17:45 +08:00
RUN set -ex \
&& apk update && apk upgrade\
&& apk add --no-cache gcc g++ make libffi-dev openssl-dev\
2020-12-15 13:17:45 +08:00
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
2020-12-15 13:46:17 +08:00
&& chmod +x /usr/local/bin/start.sh \
2021-05-23 23:17:45 +08:00
&& pip install dailycheckin --upgrade \
&& ln -s /root/.local/bin/dailycheckin /usr/bin/dailycheckin
ADD . /dailycheckin
2020-12-12 09:47:32 +08:00
ENTRYPOINT ["start.sh"]