edit dockerfile

This commit is contained in:
2025-07-07 02:23:15 +08:00
parent 13f2dd800a
commit 09548c6536

View File

@@ -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"]