Skip to content

Instantly share code, notes, and snippets.

@camelpunch
Last active March 14, 2017 13:57
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 camelpunch/4eabb8a283a939208e83c949f17393d5 to your computer and use it in GitHub Desktop.
Save camelpunch/4eabb8a283a939208e83c949f17393d5 to your computer and use it in GitHub Desktop.
Cross-compile Haskell
FROM debian:jessie
RUN apt-get update && apt-get install -yy \
curl \
build-essential
RUN curl -sSL https://get.haskellstack.org/ | sh
RUN stack setup
COPY ./ project
ENV LC_ALL=C.UTF-8
RUN cd project && stack install
docker run myimagename cat /root/.local/bin/mything > linux-mything
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment