summaryrefslogtreecommitdiff
path: root/test/testvol/Containerfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/testvol/Containerfile')
-rw-r--r--test/testvol/Containerfile7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/testvol/Containerfile b/test/testvol/Containerfile
index de44798fe..32448f5a9 100644
--- a/test/testvol/Containerfile
+++ b/test/testvol/Containerfile
@@ -1,10 +1,9 @@
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/
+COPY ./ /go/src/github.com/containers/podman/
WORKDIR /go/src/github.com/containers/podman
-RUN GO111MODULE=off go build -o /testvol ./cmd/testvol
+RUN GO111MODULE=off go build -o /testvol ./test/testvol
FROM alpine
COPY --from=build-img /testvol /usr/local/bin
WORKDIR /
-ENTRYPOINT ["/usr/local/bin/testvol"]
+ENTRYPOINT ["/usr/local/bin/testvol", "serve"]