Spaces:
Sleeping
Sleeping
Amin commited on
Commit Β·
74c9c7c
1
Parent(s): 2e658e7
fix: pin Docker base images to currently-published tags (python/uv/node)
Browse files- 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
|
| 7 |
FROM tianon/gosu:1.19-trixie AS gosu_source
|
| 8 |
-
FROM node:22
|
| 9 |
|
| 10 |
-
FROM python:3.13
|
| 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 |
-
&&
|
| 36 |
-
&&
|
| 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
|