Skip to content

Instantly share code, notes, and snippets.

@lorenzo
Created August 28, 2017 16:59
Show Gist options
  • Save lorenzo/087d73d38f8fe4088e60dd8e88ed0122 to your computer and use it in GitHub Desktop.
Save lorenzo/087d73d38f8fe4088e60dd8e88ed0122 to your computer and use it in GitHub Desktop.
FROM fpco/stack-build:latest as haskell-build
ADD .
RUN stack install
FROM ubuntu:16
COPY --from=haskell-build /path/to/install/folder/my-binary /usr/local/bin
CMD ["my-binary"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment