edit dockerfile
This commit is contained in:
@@ -5,7 +5,7 @@ FROM python:3.12-slim
|
||||
WORKDIR /app
|
||||
|
||||
# 将项目文件拷贝到容器中
|
||||
COPY . /app
|
||||
COPY ./app .
|
||||
|
||||
# 安装项目依赖
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
@@ -14,5 +14,5 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
EXPOSE 8000
|
||||
|
||||
# 启动命令
|
||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user