Skip to content

Instantly share code, notes, and snippets.

@karlisabele
Last active June 17, 2019 13:35
Show Gist options
  • Save karlisabele/e3f9cfb83291768dc325778cf58d82ae to your computer and use it in GitHub Desktop.
Save karlisabele/e3f9cfb83291768dc325778cf58d82ae to your computer and use it in GitHub Desktop.
FROM nixpkgs/nix as build
// Do your building stuff here
// Lets assume your file is located in /build directory
FROM alpine
COPY --from=build /build /app
ENTRYPOINT ["/app/my-binary"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment