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
15
Dockerfile
15
Dockerfile
@ -1,13 +1,14 @@
|
||||
FROM python:3.10-alpine
|
||||
FROM python:3.10-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./main.py /app
|
||||
COPY ./common /app
|
||||
COPY ./modules /app
|
||||
COPY ./requirements.txt /app
|
||||
COPY ./main.py .
|
||||
COPY ./common ./common
|
||||
COPY ./modules ./modules
|
||||
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" ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user