summaryrefslogtreecommitdiff
path: root/test/testvol/Containerfile
blob: de44798fe17787c97522d1456c5067109845db64 (plain)
1
2
3
4
5
6
7
8
9
10
FROM docker.io/library/golang:1.18-alpine AS build-img
COPY ./test/testvol/ /go/src/github.com/containers/podman/cmd/testvol/
COPY ./vendor /go/src/github.com/containers/podman/vendor/
WORKDIR /go/src/github.com/containers/podman
RUN GO111MODULE=off go build -o /testvol ./cmd/testvol

FROM alpine
COPY --from=build-img /testvol /usr/local/bin
WORKDIR /
ENTRYPOINT ["/usr/local/bin/testvol"]