Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:
default: ""
options:
- all
- amp
- app-runner
- astro
- base-image
Expand Down
37 changes: 37 additions & 0 deletions hub/amp/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
ARG SANDBOX_VERSION=latest
Comment thread
mendral-app[bot] marked this conversation as resolved.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maintainability (P3), medium confidence: The SANDBOX_VERSION build arg defaults to latest, a mutable tag. Consider pinning to a digest for reproducible builds, or documenting that CI always overrides this arg.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At hub/amp/Dockerfile, line 1:

<issue>
The `SANDBOX_VERSION` build arg defaults to `latest`, a mutable tag. Consider pinning to a digest for reproducible builds, or documenting that CI always overrides this arg.
</issue>


FROM ghcr.io/blaxel-ai/sandbox:${SANDBOX_VERSION} AS sandbox-api

FROM node:24-slim@sha256:2c87ef9bd3c6a3bd4b472b4bec2ce9d16354b0c574f736c476489d09f560a203

ARG AMP_VERSION=0.0.1786305972-ge46792
ARG AMP_INSTALLER_SHA256=4ceab71af4f5a126d8ffe0e1af3b06f210be67eae93c8e4583793a52064fc2e2

RUN apt-get update && apt-get install -y --no-install-recommends \
bash \
ca-certificates \
curl \
git \
gzip \
python3 \
python-is-python3 \
ripgrep \
&& rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://ampcode.com/install.sh -o /tmp/install-amp.sh \
&& echo "${AMP_INSTALLER_SHA256} /tmp/install-amp.sh" | sha256sum -c - \
&& AMP_HOME=/opt/amp AMP_VERSION="${AMP_VERSION}" NO_COLOR=1 bash /tmp/install-amp.sh \
&& ln -s /opt/amp/bin/amp /usr/local/bin/amp \
&& amp --version | grep -F "${AMP_VERSION}" \
&& rm /tmp/install-amp.sh
Comment thread
mendral-app[bot] marked this conversation as resolved.
Comment thread
mendral-app[bot] marked this conversation as resolved.

WORKDIR /blaxel

COPY --from=sandbox-api /sandbox-api /usr/local/bin/sandbox-api
RUN chmod +x /usr/local/bin/sandbox-api

EXPOSE 8080

ENV HOME=/blaxel

ENTRYPOINT ["/usr/local/bin/sandbox-api"]
Comment thread
cursor[bot] marked this conversation as resolved.
23 changes: 23 additions & 0 deletions hub/amp/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "amp",
"displayName": "Amp",
"categories": [
"agents",
"development"
],
"description": "A sandbox image with Amp pre-installed for agentic coding workflows.",
"longDescription": "The Amp sandbox image provides a Blaxel sandbox runtime with Amp installed and available on PATH as `amp`. Use it to create SDK-managed sandboxes where Amp can inspect repositories, run commands, stream structured output, and continue threads after the sandbox resumes from standby.",
"url": "https://ampcode.com/manual",
"icon": "https://blaxel.ai/logo.png",
"memory": 8192,
"ports": [
{
"name": "sandbox-api",
"target": 8080,
"protocol": "HTTP"
}
],
"enterprise": false,
"coming_soon": false,
"hidden": true
}