2024-01-14 13:03:08 +08:00
|
|
|
FROM python:3.9-alpine
|
2020-12-12 09:47:32 +08:00
|
|
|
|
2020-12-15 13:17:45 +08:00
|
|
|
WORKDIR /dailycheckin
|
2021-05-21 15:10:01 +08:00
|
|
|
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 \
|
2021-03-17 19:31:29 +08:00
|
|
|
&& apk update && apk upgrade\
|
2024-01-14 13:03:08 +08:00
|
|
|
&& 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 \
|
2021-05-21 15:10:01 +08:00
|
|
|
&& ln -s /root/.local/bin/dailycheckin /usr/bin/dailycheckin
|
|
|
|
|
|
|
|
ADD . /dailycheckin
|
|
|
|
|
2020-12-12 09:47:32 +08:00
|
|
|
ENTRYPOINT ["start.sh"]
|