The Dockerfile in the original repo causes the ghc stack build to fail due to a version mismatch. The version here uses ubuntu:17.10 which comes preloaded with ghc_8.0.2-10. Read more about Stack here https://docs.haskellstack.org/en/stable/install_and_upgrade/#ubuntu
Selecting previously unselected package ghc.
Preparing to unpack .../32-ghc_8.0.2-10_amd64.deb ...
Unpacking ghc (8.0.2-10) ...
Compiler version mismatched, found ghc-7.10.3 (x86_64),
but expected minor version match with ghc-8.0.2 (x86_64)
(based on resolver setting in /corrode/stack.yaml).
Try running "stack setup" to install the correct GHC into
/root/.stack/programs/x86_64-linux/
FROM ubuntu:17.10
RUN apt-get update && apt-get install git ghc haskell-stack -y
# RUN stack upgrade --binary
RUN git clone https://github.com/jameysharp/corrode.git
RUN cd corrode && stack build && stack install
ENV PATH="/root/.local/bin:${PATH}"
Preferred, run in place:
docker run -v=`pwd`:/tmp/corrode sitkevij/corrode hello.c
Or interactive shell:
docker run -it sitkevij/corrode
Content type
Image
Digest
Size
390.3 MB
Last updated
over 8 years ago
docker pull sitkevij/corrode