$ docker build --no-cache .
Sending build context to Docker daemon 4.096kB
Step 1/5 : FROM haskell:8.2.1
---> 5c2a170680fe
Step 2/5 : WORKDIR /app
---> c8de7a174535
Removing intermediate container 6a672c3b44b7
Step 3/5 : COPY . /app
---> 37588f4c6322
Step 4/5 : RUN stack --version
---> Running in ddcd9ccdaf20
Version 1.5.1, Git revision 600c1f01435a10d127938709556c1682ecfd694e (4861 commits) x86_64 hpack-0.17.1
---> f79f9c618049
Removing intermediate container ddcd9ccdaf20
Step 5/5 : RUN stack build --only-dependencies
---> Running in a1cb8152f248
Downloading nightly-2017-12-01 build plan ...
Downloaded nightly-2017-12-01 build plan.
Downloading root
Downloading timestamp
Downloading snapshot
Downloading mirrors
Cannot update index (no local copy)
Downloading index
Updated package list downloaded
Populating index cache ...
Populated index cache.
Unable to parse cabal file for integer-gmp-1.0.1.0: NoParse "build-depends" 58
The command '/bin/sh -c stack build --only-dependencies' returned a non-zero code: 1
Minimal files:
==> Dockerfile <==
FROM haskell:8.2.1
WORKDIR /app
COPY . /app
RUN stack --version
RUN stack build --only-dependencies
==> silly.cabal <==
name: silly
version: 0.1.0
build-type: Simple
cabal-version: >= 1.22
library
build-depends: base >= 4.8 && < 5
default-language: Haskell2010
==> stack.yaml <==
resolver: nightly-2017-12-01
packages:
- .