# file: Dockerfile

FROM gcc as builder

WORKDIR /myapp
COPY hello-world.c /myapp
RUN gcc -static -o hello-world hello-world.c

FROM scratch
COPY --from=builder /myapp/hello-world /
CMD ["/hello-world"]

