From 16257e65a69890aca2afdb7a5b48348f61e9f98a Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sun, 30 Aug 2026 16:42:13 +0900 Subject: [PATCH] chore(release): restore Dockerfile and bump version to 0.5.1 --- Dockerfile | 27 +++++++++++++++++++++++++++ pyproject.toml | 2 +- uv.lock | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6260523 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM python:3.12-slim + +ARG SOURCE_COMMIT +LABEL org.opencontainers.image.source="https://github.com/fourblocks2020/trex-core" \ + org.opencontainers.image.revision="${SOURCE_COMMIT}" + +WORKDIR /opt/trex-core + +RUN test "${#SOURCE_COMMIT}" -eq 40 \ + && case "${SOURCE_COMMIT}" in \ + *[!0-9a-f]*) false ;; \ + *) true ;; \ + esac \ + || { echo "SOURCE_COMMIT must be a 40-character lowercase commit" >&2; exit 1; } + +COPY pyproject.toml uv.lock ./ +COPY trex_core/ ./trex_core/ + +RUN python -m pip install --no-cache-dir "uv==0.11.14" \ + && uv sync --locked --no-dev --no-editable \ + && useradd --create-home --uid 10001 trex + +ENV PATH="/opt/trex-core/.venv/bin:${PATH}" + +USER 10001:10001 + +ENTRYPOINT ["trex-core-daemon"] diff --git a/pyproject.toml b/pyproject.toml index accc5e5..68caa3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "trex-core" -version = "0.5.0" +version = "0.5.1" description = "Shared core for the trex product family; first domain: slot lifecycle (storage-agnostic pure domain)" requires-python = ">=3.12" dependencies = [ diff --git a/uv.lock b/uv.lock index 179350b..0355cda 100644 --- a/uv.lock +++ b/uv.lock @@ -289,7 +289,7 @@ wheels = [ [[package]] name = "trex-core" -version = "0.5.0" +version = "0.5.1" source = { editable = "." } dependencies = [ { name = "httpx" },