Last active
July 31, 2019 17:14
-
-
Save TimWSpence/8c1e3b203c397eff46cfb168a346beee to your computer and use it in GitHub Desktop.
Build script for optimized multistage Docker build for Haskell Stack
This file contains 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
docker pull ns/app-dependencies:latest || true | |
docker build --target dependencies --cache-from ns/app-dependencies:latest -t ns/app-dependencies . | |
docker build --target app --cache-from ns/app-dependencies:latest -t ns/app . | |
docker push ns/app-dependencies:latest | |
docker push ns/app:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment