新增Dockerfile;修改simulations中部分参数格式判断

This commit is contained in:
2026-02-10 15:25:03 +08:00
parent a0987105dc
commit a472639b8a
3 changed files with 17 additions and 8 deletions

View File

@@ -1,19 +0,0 @@
FROM continuumio/miniconda3:latest
WORKDIR /app
# 安装 Python 3.12 和 pymetis (通过 conda-forge 避免编译问题)
RUN conda install -y -c conda-forge python=3.12 pymetis && \
conda clean -afy
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
COPY .env .
ENV PYTHONPATH=/app
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]