This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The below is a combination of the following two things: | |
# 1) This article + corresponding Gist: https://medium.com/permutive/optimized-docker-builds-for-haskell-76a9808eb10b | |
# 2) This Reddit comment in response to the above: | |
# - https://www.reddit.com/r/haskell/comments/cl5uod/optimized_docker_builds_for_haskell/evuzccm/ | |
# It is a multi-stage Docker build with 3 stages: 1) dependencies, 2) build, and 3) deploy | |
# ------------------------------------------------------------------------------------------- | |
# STAGE 1: Dependencies | |
# ------------------------------------------------------------------------------------------- | |
FROM haskell:8.10.2 as dependencies |