Skip to content

Docker images

Docker Hub includes Docker images under `fpco/stack-build'.

To update those images with a new version of Stack:

  1. Under commercialhaskell/stackage/automated/dockerfiles, add lts-X.Y/Dockerfile (where X.Y is the latest Stackage Haskell LTS version), containing (where X.Z is the previous Haskell LTS version, and X.Y.Z is the newly released Stack version):

    FROM $DOCKER_REPO:lts-X.Z
    ARG STACK_VERSION=X.Y.Z
    RUN wget -qO- https://github.com/commercialhaskell/stack/releases/download/v$STACK_VERSION/stack-$STACK_VERSION-linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C /usr/local/bin '*/stack'
    
  2. Run ./build.sh lts-X.Y. Then test that the new image has the new version of Stack. For example, command:

    docker run --rm fpco/stack-build:lts stack --version
    
  3. Use the following commands to push the new image to the registry:

    ./build.sh --push lts-X.Y
    ./build.sh --push --small lts-X.Y