summaryrefslogtreecommitdiff
path: root/contrib/helloimage/Containerfile
blob: 0cbf6d9a02f3710378d2fad04315cc42507eb100 (plain)
1
2
3
4
5
6
7
8
9
10
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"]