在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jkachmar/alpine-haskell-stack开源软件地址(OpenSource Url):https://github.com/jkachmar/alpine-haskell-stack开源编程语言(OpenSource Language):Makefile 57.6%开源软件介绍(OpenSource Introduction):GHC, Alpine, Stack, and DockerTable of Contents This repository is a small demonstration of the steps required to build an
Alpine Linux Docker image with all the tools necessary to compile Haskell
programs linked against Such an environment are extremely useful for producing small Docker images for
the deployment of services and for creating portable Haskell executables (either
statically linked, or bundled with the At the time of writing, this repository is primarily geared towards showing off
a workflow by which one can use In the future I hope to either update this repository with explicit instructions and/or examples that show how one can create minimal (i.e. tens of MB) Docker images to deploy Haskell applications in production. PrerequisitesEnsure Docker is installed on your computer and the Docker daemon is running. Install the Haskell Tool Stack. Building the Docker ImagesAt the time of writing (1 Apr. 2019) GHC-HQ doesn't provide a version of GHC
that is compatible with This means that the first step in this process is going to be compiling GHC itself and packaging up all the necessary tools and dependencies in an Alpine Linux container. For convenience, I've combined all of these steps into a single, multi-stage Dockerfile in this repository, and written a Makefile that caches the intermediate build layers so changes to the final environment don't trigger a full rebuild of GHC and the associated tooling. "Quick" StartTo build the Docker images, navigate to the project root directory and run:
Keep in mind that this stage compiles GHC, which can take anywhere from 30 mins to upwards of an hour depending on how fast your computer is. OverviewI've tried to keep the Dockerfile relatively well commented, but the build process can be roughly understood as an impl
Developing Locally with |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论