feat: scaffold modular monolith backend architecture

This commit is contained in:
Bot
2026-08-30 23:51:12 +08:00
parent 8b086a8a47
commit 9f6ecf33f9
21 changed files with 273 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM python:3.11-slim
WORKDIR /app
# 安装基础编译依赖
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libpq-dev \
curl \
&& rm -rf /var/lib/apt/lists/*
# 安装 Python 依赖
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 复制代码
COPY . .
EXPOSE 8080
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080", "--workers", "4"]