Update haskell to make the example dockerfiles more stable
This commit is contained in:
parent
181bc12ff0
commit
567748b3cc
|
|
@ -23,24 +23,24 @@ Additionally, we support the two most versions of Debian (`stable` and `oldstabl
|
||||||
Start an interactive interpreter session with `ghci`:
|
Start an interactive interpreter session with `ghci`:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run -it --rm %%IMAGE%%:8
|
$ docker run -it --rm %%IMAGE%%:9
|
||||||
GHCi, version 8.4.3: http://www.haskell.org/ghc/ :? for help
|
GHCi, version 9.0.1: http://www.haskell.org/ghc/ :? for help
|
||||||
Prelude>
|
Prelude>
|
||||||
```
|
```
|
||||||
|
|
||||||
Dockerize an application using `stack`:
|
Dockerize an application using `stack`:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM %%IMAGE%%:8
|
FROM %%IMAGE%%:8.10
|
||||||
RUN stack install pandoc pandoc-citeproc
|
RUN stack install --resolver lts-17.14 pandoc citeproc
|
||||||
ENTRYPOINT ["pandoc"]
|
ENTRYPOINT ["pandoc"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Dockerize an application using `cabal`:
|
Dockerize an application using `cabal`:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM %%IMAGE%%:8
|
FROM %%IMAGE%%:8.10
|
||||||
RUN cabal update && cabal install pandoc pandoc-citeproc
|
RUN cabal update && cabal install pandoc citeproc
|
||||||
ENTRYPOINT ["pandoc"]
|
ENTRYPOINT ["pandoc"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -59,7 +59,7 @@ COPY ./example.cabal /opt/example/example.cabal
|
||||||
# Docker will cache this command as a layer, freeing us up to
|
# Docker will cache this command as a layer, freeing us up to
|
||||||
# modify source code without re-installing dependencies
|
# modify source code without re-installing dependencies
|
||||||
# (unless the .cabal file changes!)
|
# (unless the .cabal file changes!)
|
||||||
RUN cabal install --only-dependencies -j4
|
RUN cabal build --only-dependencies -j4
|
||||||
|
|
||||||
# Add and Install Application Code
|
# Add and Install Application Code
|
||||||
COPY . /opt/example
|
COPY . /opt/example
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue