mirror of
https://github.com/NoCLin/LightMirrors
synced 2025-12-16 22:20:30 +08:00
23 lines
488 B
Docker
23 lines
488 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", "server.py"]
|
|
|
|
|