Skip to content

Commit

Permalink
Merge pull request #2 from cloud-gov/update-for-cg
Browse files Browse the repository at this point in the history
install buildkit on ubuntu
  • Loading branch information
dandersonsw authored Apr 16, 2024
2 parents 1cd75fc + 346e635 commit deead7b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ ENV CGO_ENABLED 0
RUN go build -o /assets/task ./cmd/task
RUN go build -o /assets/build ./cmd/build

FROM moby/buildkit:v0.13.1 AS task
FROM ${base_image} AS task
RUN apt-get install -y wget runc
RUN wget https://github.com/moby/buildkit/releases/download/v0.13.1/buildkit-v0.13.1.linux-amd64.tar.gz
RUN tar xvf buildkit-v0.13.1.linux-amd64.tar.gz
COPY --from=builder /assets/task /usr/bin/
COPY --from=builder /assets/build /usr/bin/
COPY bin/setup-cgroups /usr/bin/
ENTRYPOINT [ "task" ]

FROM ${base_image} as base
COPY --from=task /usr/bin /usr/bin/
ENTRYPOINT ["task"]

FROM base
FROM task

0 comments on commit deead7b

Please sign in to comment.