filepath-crypto/Dockerfile
2025-07-14 16:00:07 +02:00

17 lines
598 B
Docker

FROM haskell:9.8.4
WORKDIR /opt/filepath-crypto
# RUN stack install --resolver lts-24.0 --compiler ghc-9.10.1 hpack
# Add just the .cabal file to capture dependencies
# COPY ./filepath-crypto.cabal /opt/filepath-crypto/filepath-crypto.cabal
# Docker will cache this command as a layer, freeing us up to
# modify source code without re-installing dependencies
# (unless the .cabal file changes!)
# Add and Install Application Code
COPY . /opt/filepath-crypto
# RUN stack build --resolver lts-24.0 --only-dependencies -j4
RUN stack build --resolver lts-23.24 --compiler ghc-9.8.4 filepath-crypto