diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-29 21:05:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 21:05:23 -0400 |
commit | d0d805ba1bd19025080ea47bb07e653505fe85e2 (patch) | |
tree | c6aee64678143ff43ef0fd47c635c6acd05bcf41 /contrib/hello/Containerfile | |
parent | c319edaaf8013d8397c5847a761f53e68536635a (diff) | |
parent | f6963cea130133086f739173b55d1af74a680fef (diff) | |
download | podman-d0d805ba1bd19025080ea47bb07e653505fe85e2.tar.gz podman-d0d805ba1bd19025080ea47bb07e653505fe85e2.tar.bz2 podman-d0d805ba1bd19025080ea47bb07e653505fe85e2.zip |
Merge pull request #13478 from cevich/build_push
Cirrus: Build multi-arch images + manifests
Diffstat (limited to 'contrib/hello/Containerfile')
-rw-r--r-- | contrib/hello/Containerfile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/hello/Containerfile b/contrib/hello/Containerfile new file mode 100644 index 000000000..0cbf6d9a0 --- /dev/null +++ b/contrib/hello/Containerfile @@ -0,0 +1,11 @@ +FROM docker.io/alpine as builder +RUN apk add gcc libc-dev +ADD podman_hello_world.c . +RUN gcc -O2 -static -o podman_hello_world podman_hello_world.c + +FROM scratch +LABEL maintainer="Podman Maintainers" +LABEL artist="Máirín Ní Ḋuḃṫaiġ, Twitter:@mairin" +USER 1000 +COPY --from=builder podman_hello_world /usr/local/bin/podman_hello_world +CMD ["/usr/local/bin/podman_hello_world"] |