File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 11# syntax = docker/dockerfile:1.11
22
33FROM concourse/golang-builder AS builder
4- WORKDIR /src
5- COPY go.mod /src/go.mod
6- COPY go.sum /src/go.sum
7- RUN --mount=type=cache,target=/root/.cache/go-build go get -d ./...
8- COPY . /src
9- ENV CGO_ENABLED=0
10- RUN go build -o /assets/task ./cmd/task
11- RUN go build -o /assets/build ./cmd/build
4+ WORKDIR /src
5+ COPY go.mod /src/go.mod
6+ COPY go.sum /src/go.sum
7+ RUN --mount=type=cache,target=/root/.cache/go-build go get -d ./...
8+ COPY . /src
9+ ENV CGO_ENABLED=0
10+ RUN go build -o /assets/task ./cmd/task
11+ RUN go build -o /assets/build ./cmd/build
1212
13- FROM moby/buildkit:v0.17.2 AS task
14- COPY --from=builder /assets/task /usr/bin/
15- COPY --from=builder /assets/build /usr/bin/
16- COPY bin/setup-cgroups /usr/bin/
17- ENTRYPOINT ["task" ]
13+ FROM moby/buildkit:v0.21.1 AS task
14+ COPY --from=builder /assets/task /usr/bin/
15+ COPY --from=builder /assets/build /usr/bin/
16+ COPY bin/setup-cgroups /usr/bin/
17+ ENTRYPOINT ["task" ]
1818
1919FROM task
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if ! which buildctl >/dev/null || ! which buildkitd >/dev/null; then
1515 ;;
1616 esac
1717
18- BUILDKIT_VERSION=" 0.17.2 "
18+ BUILDKIT_VERSION=" 0.21.1 "
1919 BUILDKIT_URL=" https://github.com/moby/buildkit/releases/download/v${BUILDKIT_VERSION} /buildkit-v${BUILDKIT_VERSION} .linux-${arch} .tar.gz"
2020
2121 curl -fL " $BUILDKIT_URL " | tar zxf -
You can’t perform that action at this time.
0 commit comments