Skip to content

Instantly share code, notes, and snippets.

@ChristopherBiscardi
Forked from mitchty/Dockerfile
Last active August 29, 2015 14:22
Show Gist options
  • Save ChristopherBiscardi/742442d513d6be2a167a to your computer and use it in GitHub Desktop.
Save ChristopherBiscardi/742442d513d6be2a167a to your computer and use it in GitHub Desktop.
FROM alpine:latest
RUN apk add --update curl xz alpine-sdk perl gmp-dev file gmp openssh openssl
RUN cd /tmp && su -l operator -c "curl -o /tmp/ghc.xz 'http://10.11.12.2:8000/ghc-7.10.1-x86_64-unknown-linux-musl.tar.xz'"
RUN su -l operator -c "cd /tmp && xz -c -d /tmp/ghc.xz | tar xf -"
RUN cd /tmp/ghc-7.10.1 && ./configure --prefix=/opt && make install
RUN echo 'main = putStrLn "Hello static world"' > /tmp/static.hs
RUN /opt/bin/ghc --make -O2 --make -static -optc-static -optl-static /tmp/static.hs -optl-pthread -o /tmp/test
RUN openssl sha1 /tmp/test
RUN ldd /tmp/test
RUN file /tmp/test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment