完善docker网络部分
This commit is contained in:
@@ -2,7 +2,7 @@ FROM python:3.11-slim
|
||||
WORKDIR /app
|
||||
|
||||
# 安装依赖
|
||||
RUN pip install --no-cache-dir fastapi==0.115.8 uvicorn[standard]==0.34.4 python-multipart
|
||||
RUN pip install --no-cache-dir fastapi==0.115.8 uvicorn[standard]==0.34.3 python-multipart
|
||||
|
||||
# 复制代码
|
||||
COPY . .
|
||||
|
||||
@@ -16,8 +16,6 @@ services:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "5000:5000"
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
|
||||
Reference in New Issue
Block a user