feat(infra): 落地 M01 基础框架与本机开发环境
交付 FastAPI/Celery/Vue 薄壳、FORCE RLS、Compose 回环与 review 修复证据,关闭 M01 DONE_LOCAL。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8b2a809f06
commit
8fb16f4a4a
97 files changed
+8059
-22
No files matched your search
@@ -0,0 +1,23 @@
|
||||
# Dev/runtime image for Watchman API, worker, and beat.
|
||||
FROM python:3.12-slim-bookworm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
UV_LINK_MODE=copy
|
||||
|
||||
COPY --from=ghcr.io/astral-sh/uv:0.13.7 /uv /usr/local/bin/uv
|
||||
|
||||
COPY pyproject.toml uv.lock .python-version ./
|
||||
COPY services/watchman ./services/watchman
|
||||
|
||||
RUN uv sync --frozen --no-dev --package watchman \
|
||||
&& useradd --create-home --uid 10001 --shell /usr/sbin/nologin watchman \
|
||||
&& chown -R watchman:watchman /app
|
||||
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
USER watchman
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["python", "-m", "watchman", "api"]
|
||||
Reference in new issue
Block a user