mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
Update Dockerfile
This commit is contained in:
parent
1c1aa49e75
commit
3f6100f6b9
13
Dockerfile
13
Dockerfile
@ -2,12 +2,13 @@ FROM python:3.10-alpine
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./main.py /app
|
COPY ./main.py .
|
||||||
COPY ./common /app
|
COPY ./common ./common
|
||||||
COPY ./modules /app
|
COPY ./modules ./modules
|
||||||
COPY ./requirements.txt /app
|
COPY ./requirements.txt .
|
||||||
|
|
||||||
# 指定源, 如果后期源挂了, 更换个源就可以.
|
# ........., ....................., ......................
|
||||||
RUN pip install --no-cache -i https://pypi.mirrors.ustc.edu.cn/simple/ -r requirements.txt
|
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
CMD [ "python", "main.py" ]
|
CMD [ "python", "main.py" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user