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
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.github
.idea
.claude
CLAUDE.md
README.md
LICENSE
Dockerfile
docker-bake.hcl
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
FROM --platform=${BUILDPLATFORM} tonistiigi/xx:1.9.0 AS xx

FROM --platform=${BUILDPLATFORM} golang:1.24.5 AS builder
COPY --from=xx / /
RUN xx-verify --setup
WORKDIR $GOPATH/src/github.com/docker/compose-bridge-transformer
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o /go/bin/transform
ARG TARGETOS TARGETARCH TARGETVARIANT
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH GOARM=${TARGETVARIANT#v} \
go build -o /go/bin/transform && \
xx-verify --static /go/bin/transform

FROM scratch AS transformer
LABEL com.docker.compose.bridge=transformation
Expand Down
Loading