Support building with Podman instead of Docker
When /usr/bin/docker is a wrapper for podman (as common no Fedora), Podman will be used which requires the full image name including the registry. It does not require the chown step, because this results in the files being owned by a temporary mapped ID due to the user namespace in rootless mode (which is the default unless Podman is run by the root user) - make the chown a no-op by using UID/GID 0.
This commit is contained in:
parent
9e949d833f
commit
f052709112
2 changed files with 6 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM golang:alpine
|
||||
FROM docker.io/golang:alpine
|
||||
|
||||
WORKDIR /root
|
||||
USER root
|
||||
|
|
@ -8,4 +8,4 @@ RUN apk add musl-dev gcc libtool m4 autoconf g++ make libblkid util-linux-dev gi
|
|||
ADD ./scripts/build-static.sh /build-static.sh
|
||||
RUN chmod +x /build-static.sh
|
||||
|
||||
CMD ["/bin/sh"]
|
||||
CMD ["/bin/sh"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue