LightMirrors/src/Dockerfile
Anonymous b6a13cf1ff
Some checks failed
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Has been cancelled
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Has been cancelled
move to subdir
2024-06-09 21:16:11 +08:00

22 lines
498 B
Docker

FROM python:3.11-alpine
RUN mkdir -p /wwwroot
WORKDIR /wwwroot
# Optimization for China as the project is aimed at Chinese users
ADD https://hub.gitmirror.com/https://github.com/mayswind/AriaNg/releases/download/1.3.7/AriaNg-1.3.7.zip /wwwroot/
RUN unzip AriaNg-1.3.7.zip && rm AriaNg-1.3.7.zip
ADD requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
WORKDIR /app
EXPOSE 8080
CMD ["python", "mirrorsrun/server.py"]