mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-22 00:08:00 +00:00
Building without go modules fails as we use different import paths now. But also there is no reason to to use GO111MODULE=off anymore so just remove it to make the build work. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
9 lines
326 B
Docker
9 lines
326 B
Docker
FROM docker.io/library/golang:1.26-alpine AS build-img
|
|
COPY ./ /go/src/github.com/podman-container-tools/podman/
|
|
WORKDIR /go/src/github.com/podman-container-tools/podman
|
|
RUN go build -o /testvol ./test/testvol
|
|
|
|
FROM alpine
|
|
COPY --from=build-img /testvol /usr/local/bin
|
|
WORKDIR /
|
|
ENTRYPOINT ["/usr/local/bin/testvol", "serve"]
|