feat: 给update.sh里的 dns 配上环境变量

This commit is contained in:
2023-02-03 20:41:28 +08:00
commit 105333dd6f
25 changed files with 1539 additions and 0 deletions

27
Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM python:alpine
LABEL AUTHOR="monlor"
ENV LANG="C.UTF-8"
ENV TZ="Asia/Shanghai"
ENV CERT_HOME="/data/certs"
ENV WORK_DIR="/data"
ENV ACME_HOME="/root/.acme.sh"
WORKDIR /data
COPY api /data/api
COPY main.py /data/
COPY requirements.txt /data/
COPY docker/entrypoint.sh /
COPY docker/update.sh /data
RUN apk update && apk add --no-cache curl openssl socat && \
ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && \
echo "${TZ}" > /etc/timezone && \
pip install -r requirements.txt && \
chmod +x /entrypoint.sh /data/update.sh && \
curl https://get.acme.sh | sh -s email=my@example.com
VOLUME ["/data/certs"]
ENTRYPOINT [ "/entrypoint.sh" ]