diff options
author | Praveen Kumar <kumarpraveen.nitdgp@gmail.com> | 2022-09-15 11:09:05 +0530 |
---|---|---|
committer | Praveen Kumar <kumarpraveen.nitdgp@gmail.com> | 2022-09-26 10:34:13 +0530 |
commit | 8c627dfb5761c37f16c409b6853937dbcf25fc1c (patch) | |
tree | 6dfefbb858f296f1e6bcbf0c3310a0609427487a /contrib/podmanremoteimage/Containerfile | |
parent | 017d81ddd0e8d228aadb949175c0aae1e4b9d925 (diff) | |
download | podman-8c627dfb5761c37f16c409b6853937dbcf25fc1c.tar.gz podman-8c627dfb5761c37f16c409b6853937dbcf25fc1c.tar.bz2 podman-8c627dfb5761c37f16c409b6853937dbcf25fc1c.zip |
Contrib: Add containerfile to create podman-remote binary image
Try to partial address #14664
Signed-off-by: Praveen Kumar <kumarpraveen.nitdgp@gmail.com>
Diffstat (limited to 'contrib/podmanremoteimage/Containerfile')
-rw-r--r-- | contrib/podmanremoteimage/Containerfile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/podmanremoteimage/Containerfile b/contrib/podmanremoteimage/Containerfile new file mode 100644 index 000000000..aa24b3956 --- /dev/null +++ b/contrib/podmanremoteimage/Containerfile @@ -0,0 +1,10 @@ +FROM registry.access.redhat.com/ubi8/go-toolset:latest AS builder +WORKDIR /opt/app-root/src +COPY . . +RUN make podman-remote-static +RUN GOOS=windows make podman-remote +RUN GOOS=darwin make podman-remote + +FROM scratch +COPY --from=builder /opt/app-root/src/bin . +ENTRYPOINT ["/podman-remote-static"] |