mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
Merge pull request #3 from im-zhangxi/main
更改Dockerfile配置,以及docker-compose文件
This commit is contained in:
commit
a51d5dad01
@ -4,6 +4,7 @@ WORKDIR /app
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN pip install --no-cache -r requirements.txt
|
||||
# 指定源, 如果后期源挂了, 更换个源就可以.
|
||||
RUN pip install --no-cache -i https://pypi.mirrors.ustc.edu.cn/simple/ -r requirements.txt
|
||||
|
||||
CMD [ "python", "main.py" ]
|
@ -1,10 +1,15 @@
|
||||
version: '1'
|
||||
name: 'lx-music'
|
||||
version: "3.8"
|
||||
services:
|
||||
api:
|
||||
lx:
|
||||
container_name: lx-server
|
||||
build: .
|
||||
restart: always
|
||||
ports:
|
||||
- "9763:9763"
|
||||
volumes:
|
||||
- .:/app
|
||||
environment:
|
||||
TZ: 'Asia/Shanghai'
|
||||
restart: always
|
||||
networks:
|
||||
default:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user