mistpe commited on
Commit
ff58603
·
verified ·
1 Parent(s): 9ad6320

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -9,13 +9,13 @@ ENV PYTHONUNBUFFERED=1 \
9
  PYTHONDONTWRITEBYTECODE=1
10
 
11
  # 安装依赖
12
- RUN pip install --upgrade pip \
13
  pip install --no-cache-dir \
14
- aiohttp==3.11.11 \
15
- colorlog==6.9.0 \
16
- fastapi==0.115.8 \
17
- python-dotenv==1.0.1 \
18
- "uvicorn[standard]"
19
 
20
  # 复制项目文件
21
  COPY ./app ./app
@@ -24,4 +24,4 @@ COPY ./app ./app
24
  EXPOSE 8000
25
 
26
  # 启动命令
27
- CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
 
9
  PYTHONDONTWRITEBYTECODE=1
10
 
11
  # 安装依赖
12
+ RUN pip install --upgrade pip && \
13
  pip install --no-cache-dir \
14
+ aiohttp==3.11.11 \
15
+ colorlog==6.9.0 \
16
+ fastapi==0.115.8 \
17
+ python-dotenv==1.0.1 \
18
+ "uvicorn[standard]"
19
 
20
  # 复制项目文件
21
  COPY ./app ./app
 
24
  EXPOSE 8000
25
 
26
  # 启动命令
27
+ CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]