Amin commited on
Commit
74c9c7c
Β·
1 Parent(s): 2e658e7

fix: pin Docker base images to currently-published tags (python/uv/node)

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -3,11 +3,11 @@
3
  # Rebuild 2026-04-13: initial release
4
 
5
  # ── Stage 1: Build Hermes Agent from source ──────────────────────────────
6
- FROM ghcr.io/astral-sh/uv:0.11.6-python3.13-trixie AS uv_source
7
  FROM tianon/gosu:1.19-trixie AS gosu_source
8
- FROM node:22.16.0-trixie-slim AS node_source
9
 
10
- FROM python:3.13.5-slim-trixie
11
  SHELL ["/bin/bash", "-c"]
12
 
13
  ENV PYTHONUNBUFFERED=1
@@ -32,8 +32,8 @@ COPY --chmod=0755 --from=node_source /usr/local/bin/node /usr/local/bin/node
32
  COPY --from=node_source /usr/local/lib/node_modules /usr/local/lib/node_modules
33
  RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
34
  && ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx \
35
- && test "$(python --version 2>&1)" = "Python 3.13.5" \
36
- && test "$(node --version)" = "v22.16.0"
37
 
38
  # ── Clone and build Hermes Agent (P1-T01 pinable upstream) ──────────────
39
  ARG HERMES_UPSTREAM_REPO=https://github.com/NousResearch/hermes-agent.git
 
3
  # Rebuild 2026-04-13: initial release
4
 
5
  # ── Stage 1: Build Hermes Agent from source ──────────────────────────────
6
+ FROM ghcr.io/astral-sh/uv:0.11-python3.13-trixie AS uv_source
7
  FROM tianon/gosu:1.19-trixie AS gosu_source
8
+ FROM node:22-trixie-slim AS node_source
9
 
10
+ FROM python:3.13-slim-trixie
11
  SHELL ["/bin/bash", "-c"]
12
 
13
  ENV PYTHONUNBUFFERED=1
 
32
  COPY --from=node_source /usr/local/lib/node_modules /usr/local/lib/node_modules
33
  RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
34
  && ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx \
35
+ && [[ "$(python --version 2>&1)" == "Python 3.13."* ]] \
36
+ && [[ "$(node --version)" == v22.* ]]
37
 
38
  # ── Clone and build Hermes Agent (P1-T01 pinable upstream) ──────────────
39
  ARG HERMES_UPSTREAM_REPO=https://github.com/NousResearch/hermes-agent.git