Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Fix the Dockerfile (#217)
Jaana Dogan21f114129231
diff --git a/Dockerfile b/Dockerfileindex 7514c4c..4b3dd64 100644--- a/Dockerfile+++ b/Dockerfile@@ -13,12 +13,8 @@# See the License for the specific language governing permissions and# limitations under the License.-# This Dockerfile builds the container image for the 'uppercase' Sandbox Agent.-# The resulting image is pushed to Artifact Registry and referenced by the-# SandboxTemplate manifest to be executed dynamically via GKE Agent Sandbox.-#-# For more details on GKE Agent Sandbox container requirements, see:-# https://docs.cloud.google.com/kubernetes-engine/docs/how-to/agent-sandbox+# This Dockerfile builds the container image for the AX system.+# It builds the 'ax' binary which can be used as a server or CLI.# Build stage# TODO: consider other options instead of Alpine@@ -36,8 +32,8 @@ RUN go mod download# Copy source codeCOPY . .-# Build the uppercase agent-RUN go build -o /app/bin/uppercase ./examples/k8s_sandbox_agent+# Build the ax binary+RUN go build -o /app/bin/ax ./cmd/ax# Runtime stage# TODO: consider other options instead of Alpine@@ -48,15 +44,11 @@ RUN apk add --no-cache ca-certificates tzdataWORKDIR /app-# Copy the built binary-COPY --from=builder /app/bin/uppercase /usr/local/bin/uppercase+COPY --from=builder /app/bin/ax /usr/local/bin/ax-# Create a non-root user matching expected Kubernetes security context best practicesRUN addgroup -S ax && adduser -S ax -G axUSER ax-# Expose standard remote agent portEXPOSE 8494--# Set default command-ENTRYPOINT ["/usr/local/bin/uppercase"]+ENTRYPOINT ["/usr/local/bin/ax"]+CMD ["serve"]diff --git a/Makefile b/Makefileindex 0d3f575..1f6fbca 100644--- a/Makefile+++ b/Makefile@@ -1,5 +1,8 @@.PHONY: all build proto test clean install install-ate+# Default container registry for ko+export KO_DOCKER_REPO ?= gcr.io/ax-container-images+# Build all binariesall: proto build@@ -74,3 +77,7 @@ clean-logs:@echo "Cleaning the event logs..."rm -rf ./eventlogmkdir ./eventlog++build-container:+ @echo "Building container image with ko..."+ ko build ./cmd/ax