Skip to content

Instantly share code, notes, and snippets.

@dylanwh
Created September 30, 2019 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylanwh/acf38ee686c52b770cb23a61b6b508df to your computer and use it in GitHub Desktop.
Save dylanwh/acf38ee686c52b770cb23a61b6b508df to your computer and use it in GitHub Desktop.
FROM ubuntu:18.04 AS builder
RUN apt-get install build-essential
COPY hello-world /hello-world/
WORKDIR /hello-world/
RUN make hello
FROM ubuntu:18.04
COPY --from=builder /hello-world/hello /usr/local/bin/hello
CMD /usr/local/bin/hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment