For random little haskell projects I'd like to compile on my machine so that I don't need much RAM on the server. I'd also like to do as little work setting up the server as possible. Currently Docker is the only (non-Nix) thing I know that allows for that.
Additionally, I'd like the Docker container to be as close to my dev setup as possible, which means Ubuntu and (at the moment) Stack.
Goal
Make a Dockerfile for deploying a haskell executable with Stack + Docker + Ubuntu
Background
For random little haskell projects I'd like to compile on my machine so that I don't need much RAM on the server. I'd also like to do as little work setting up the server as possible. Currently Docker is the only (non-Nix) thing I know that allows for that.
Additionally, I'd like the Docker container to be as close to my dev setup as possible, which means Ubuntu and (at the moment) Stack.
Goal
Make a
Dockerfile
for deploying a haskell executable with Stack + Docker + UbuntuExisting work
Stack + Docker + Alpine: https://github.com/jkachmar/alpine-haskell-stack
Cabal + Docker + Ubuntu: https://github.com/phadej/docker-haskell-example