mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-15 02:17:43 +00:00
I think it is confusion to have this Containerfile in the repo root. It is used for the tests only so we should move it into the same dir. Also adapt the Makefile target to use the new path and add the current date as tag instead of using latest which can break CI easily when we have to update the image. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
10 lines
358 B
Docker
10 lines
358 B
Docker
FROM golang:1.15-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 go build -o /testvol ./cmd/testvol
|
|
|
|
FROM alpine
|
|
COPY --from=build-img /testvol /usr/local/bin
|
|
WORKDIR /
|
|
ENTRYPOINT ["/usr/local/bin/testvol"]
|