Skip to content
Merged
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
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ COPY --from=builder /binaries/cagent-$TARGETOS-$TARGETARCH cagent
FROM scratch AS cross
COPY --from=builder /binaries .

FROM alpine:3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
RUN apk add --no-cache curl socat
ARG TARGETOS TARGETARCH
COPY --from=builder /binaries/cagent-$TARGETOS-$TARGETARCH /cagent
FROM docker:cli
RUN mkdir /data
ARG TARGETOS TARGETARCH
ENV DOCKER_MCP_IN_CONTAINER=1
ENTRYPOINT ["/cagent"]
COPY --from=docker/mcp-gateway:v2 /docker-mcp /usr/local/lib/docker/cli-plugins/
COPY --from=builder /binaries/cagent-$TARGETOS-$TARGETARCH /cagent
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ tasks:

build-image:
desc: Build Docker image
cmd: docker buildx build -t docker/cagent:latest {{.BUILD_ARGS}} .
cmd: docker buildx build -t docker/cagent:v1.4 {{.BUILD_ARGS}} .

push-image:
desc: Build and Push Docker image
cmd: docker buildx build --push -t docker/cagent:latest {{.BUILD_ARGS}} .
cmd: docker buildx build --push -t docker/cagent:v1.4 {{.BUILD_ARGS}} .

build-agents:
desc: Build Demo dockerized agents
Expand Down
2 changes: 1 addition & 1 deletion pkg/oci/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM docker/cagent
FROM docker/cagent:v1.4
LABEL com.docker.agent.mcp-servers="{{ .McpServers }}"
LABEL com.docker.agent.models="{{ .Models }}"
LABEL com.docker.agent.packaging.version="v0.0.1"
Expand Down