实现首版 Gitea microVM runner
test / python (pull_request) Canceled after 0s
test / shell (pull_request) Canceled after 0s
test / python (push) Canceled after 0s
test / shell (push) Canceled after 0s

This commit is contained in:
2026-09-16 13:06:05 +00:00
parent 0ee1d50703
commit 23695fcc98
14 changed files with 580 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM python:3.12.11-alpine3.22 AS build
WORKDIR /src
COPY pyproject.toml README.md ./
COPY src ./src
RUN python -m venv /venv && /venv/bin/pip install --no-cache-dir .
FROM python:3.12.11-alpine3.22
RUN addgroup -S -g 65532 runner && adduser -S -D -H -u 65532 -G runner runner
COPY --from=build /venv /venv
USER 65532:65532
EXPOSE 8787
ENTRYPOINT ["/venv/bin/gitea-microvm-controller"]