完善docker网络部分
This commit is contained in:
@@ -2,7 +2,7 @@ FROM python:3.11-slim
|
|||||||
WORKDIR /app
|
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 . .
|
COPY . .
|
||||||
|
|||||||
@@ -16,8 +16,6 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
dockerfile: dockerfile
|
dockerfile: dockerfile
|
||||||
ports:
|
|
||||||
- "5000:5000"
|
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user