test: 记录生产验收并验证 Sync 测试部署

This commit is contained in:
2026-09-08 12:51:23 +08:00
parent 4c79e940d2
commit 8d9333d8b0
5 changed files with 459 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ WORKDIR /service
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev
COPY sync_server ./sync_server
RUN useradd --uid 10001 --create-home sync && mkdir /staging && chown sync /staging
RUN useradd --uid 10001 --create-home opennexus && mkdir /staging && chown opennexus /staging
USER 10001
ENV SYNC_STAGING_DIR=/staging
CMD ["/service/.venv/bin/python", "-m", "sync_server", "serve"]