Merge pull request #3 from im-zhangxi/main

更改Dockerfile配置,以及docker-compose文件
This commit is contained in:
梓澄 2023-12-02 18:28:57 +08:00 committed by GitHub
commit a51d5dad01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -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" ]

View File

@ -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: