|  | @@ -1,16 +1,13 @@
 | 
											
												
													
														|  |  # 使用官方Python镜像作为基础镜像
 |  |  # 使用官方Python镜像作为基础镜像
 | 
											
												
													
														|  |  FROM python:3.10
 |  |  FROM python:3.10
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -# 设置工作目录
 |  | 
 | 
											
												
													
														|  |  WORKDIR /app
 |  |  WORKDIR /app
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  # 复制依赖文件到容器中
 |  |  # 复制依赖文件到容器中
 | 
											
												
													
														|  |  COPY requirements.txt /app/
 |  |  COPY requirements.txt /app/
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -RUN pip install --no-cache-dir -r requirements.txt
 |  | 
 | 
											
												
													
														|  | 
 |  | +RUN pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
 | 
											
												
													
														|  | 
 |  | +RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -# 复制你的项目文件到工作目录
 |  | 
 | 
											
												
													
														|  | -COPY . /app
 |  | 
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -# 启动服务
 |  | 
 | 
											
												
													
														|  | -CMD ["hypercorn", "async_app:app", "--config", "hypercorn_config.toml"]
 |  | 
 | 
											
												
													
														|  | 
 |  | +CMD ["python3"]
 |