feat(dockerfile): 去除docker对项目源码的挂载依赖
This commit is contained in:
parent
3d3200a854
commit
c4ece98d98
17
docker_full/Dockerfile
Normal file
17
docker_full/Dockerfile
Normal file
@ -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 下
|
18
docker_full/Dockerfile.arm32v6
Normal file
18
docker_full/Dockerfile.arm32v6
Normal file
@ -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 下
|
18
docker_full/Dockerfile.arm32v7
Normal file
18
docker_full/Dockerfile.arm32v7
Normal file
@ -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 下
|
18
docker_full/Dockerfile.arm64v8
Normal file
18
docker_full/Dockerfile.arm64v8
Normal file
@ -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 下
|
Loading…
Reference in New Issue
Block a user