From c4ece98d980b40333f56ea32eee500f921db17a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AF=E3=81=97=E3=82=82=E3=81=A8=E3=81=95=E3=81=8F?= =?UTF-8?q?=E3=82=89?= Date: Sat, 20 Aug 2022 15:27:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(dockerfile):=20=E5=8E=BB=E9=99=A4docker?= =?UTF-8?q?=E5=AF=B9=E9=A1=B9=E7=9B=AE=E6=BA=90=E7=A0=81=E7=9A=84=E6=8C=82?= =?UTF-8?q?=E8=BD=BD=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker_full/Dockerfile | 17 +++++++++++++++++ docker_full/Dockerfile.arm32v6 | 18 ++++++++++++++++++ docker_full/Dockerfile.arm32v7 | 18 ++++++++++++++++++ docker_full/Dockerfile.arm64v8 | 18 ++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 docker_full/Dockerfile create mode 100644 docker_full/Dockerfile.arm32v6 create mode 100644 docker_full/Dockerfile.arm32v7 create mode 100644 docker_full/Dockerfile.arm64v8 diff --git a/docker_full/Dockerfile b/docker_full/Dockerfile new file mode 100644 index 0000000..1d1a745 --- /dev/null +++ b/docker_full/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3-alpine +LABEL maintainer="x.yangtze.river@gmail.com" + +ENV CRON_SIGNIN='30 9 * * *' +ENV MULTI=TRUE +ENV TZ=Asia/Shanghai +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \ + && apk add --no-cache tzdata git + +RUN git clone https://github.com/Womsxd/AutoMihoyoBBS app +WORKDIR /app +RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt + +CMD ["python3", "./docker.py" ] + + +#挂载本地 config文件夹 到 /app/config 下 diff --git a/docker_full/Dockerfile.arm32v6 b/docker_full/Dockerfile.arm32v6 new file mode 100644 index 0000000..54140a1 --- /dev/null +++ b/docker_full/Dockerfile.arm32v6 @@ -0,0 +1,18 @@ +FROM arm32v6/python:3-alpine +COPY qemu-arm-static /usr/bin/ +LABEL maintainer="x.yangtze.river@gmail.com" + +ENV CRON_SIGNIN='30 9 * * *' +ENV MULTI=TRUE +ENV TZ=Asia/Shanghai +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \ + && apk add --no-cache tzdata git + +RUN git clone https://github.com/Womsxd/AutoMihoyoBBS app +WORKDIR /app +RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt + +CMD ["python3", "./docker.py" ] + + +#挂载本地 config文件夹 到 /app/config 下 \ No newline at end of file diff --git a/docker_full/Dockerfile.arm32v7 b/docker_full/Dockerfile.arm32v7 new file mode 100644 index 0000000..4e9363f --- /dev/null +++ b/docker_full/Dockerfile.arm32v7 @@ -0,0 +1,18 @@ +FROM arm32v7/python:3-alpine +COPY qemu-arm-static /usr/bin/ +LABEL maintainer="x.yangtze.river@gmail.com" + +ENV CRON_SIGNIN='30 9 * * *' +ENV MULTI=TRUE +ENV TZ=Asia/Shanghai +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \ + && apk add --no-cache tzdata git + +RUN git clone https://github.com/Womsxd/AutoMihoyoBBS app +WORKDIR /app +RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt + +CMD ["python3", "./docker.py" ] + + +#挂载本地 config文件夹 到 /app/config 下 \ No newline at end of file diff --git a/docker_full/Dockerfile.arm64v8 b/docker_full/Dockerfile.arm64v8 new file mode 100644 index 0000000..d56cd12 --- /dev/null +++ b/docker_full/Dockerfile.arm64v8 @@ -0,0 +1,18 @@ +FROM arm64v8/python:3-alpine +COPY qemu-arm-static /usr/bin/ +LABEL maintainer="x.yangtze.river@gmail.com" + +ENV CRON_SIGNIN='30 9 * * *' +ENV MULTI=TRUE +ENV TZ=Asia/Shanghai +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \ + && apk add --no-cache tzdata git + +RUN git clone https://github.com/Womsxd/AutoMihoyoBBS app +WORKDIR /app +RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt + +CMD ["python3", "./docker.py" ] + + +#挂载本地 config文件夹 到 /app/config 下 \ No newline at end of file