build(release): 准备0.3.1-alpha.3安装包与Docker部署 [skip ci]

This commit is contained in:
2026-09-15 10:58:02 +08:00
parent 3bbd7a2e1b
commit 586c4bf049
15 changed files with 155 additions and 29 deletions
+5
View File
@@ -7,6 +7,10 @@ COPY console ./
RUN pnpm build
FROM python:3.12-slim
ARG OPENNEXUS_SYNC_VERSION=0.3.1-alpha.3
LABEL org.opencontainers.image.title="OpenNexus Server Sync" \
org.opencontainers.image.version="${OPENNEXUS_SYNC_VERSION}" \
org.opencontainers.image.source="https://gitea.kronecker.cc/Kronecker/NotesAgentic"
COPY --from=ghcr.io/astral-sh/uv:0.9.24 /uv /bin/uv
WORKDIR /service
COPY pyproject.toml uv.lock ./
@@ -16,4 +20,5 @@ COPY --from=console /sync_server/static ./sync_server/static
RUN useradd --uid 10001 --create-home opennexus && mkdir /staging && chown opennexus /staging
USER 10001
ENV SYNC_STAGING_DIR=/staging
EXPOSE 8080
CMD ["/service/.venv/bin/python", "-m", "sync_server", "serve"]