{"id":16339123,"url":"https://github.com/phadej/docker-stackage","last_synced_at":"2026-03-14T22:34:31.060Z","repository":{"id":27285788,"uuid":"30759313","full_name":"phadej/docker-stackage","owner":"phadej","description":"Docker image with stackage config","archived":false,"fork":false,"pushed_at":"2015-05-19T10:15:09.000Z","size":180,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T07:51:09.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phadej.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-13T14:17:40.000Z","updated_at":"2019-12-05T06:33:50.000Z","dependencies_parsed_at":"2022-09-01T02:13:17.011Z","dependency_job_id":null,"html_url":"https://github.com/phadej/docker-stackage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phadej%2Fdocker-stackage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phadej%2Fdocker-stackage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phadej%2Fdocker-stackage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phadej%2Fdocker-stackage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phadej","download_url":"https://codeload.github.com/phadej/docker-stackage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248329501,"owners_count":21085544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T23:53:33.496Z","updated_at":"2026-03-14T22:34:26.006Z","avatar_url":"https://github.com/phadej.png","language":"Haskell","readme":"# Haskell Stackage Docker image\n\nThis image is usable for building docker images with Haskell binaries.\n\nUsing double image trick, we build the binary using this image, but package into another.\n\nCreate `build.sh`:\n\n```sh\n#!/bin/sh\nset -exu\ncd /build\nrm -rf .cabal-sandbox .cabal.sanbox.config\ncabal clean\nrm -f cabal.config                 # stackage image has global constraints\ncabal install --only-dependencies\ncabal configure\ncabal build\nchmod -R a+rw dist                 # we build as root, have to make everything rw\n```\n\nand `Dockerfile`\n\n```\nFROM        snoyberg/haskell-scratch\nCOPY        dist/build/yourapp/yourapp /yourcompany/yourapp\nENTRYPOINT  [ \"/yourcompany/yourapp\" ]\n```\n\nThen we can create an image without build dependencies:\n\n```\ndocker run --rm=true -v $(pwd):/build phadej/stackage:2.9 sh /build/build.sh  # build binary\ndocker build .                                                                # build image\n```\n\n--\n\nThis image contains some packages already compiled (my subjective picks)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphadej%2Fdocker-stackage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphadej%2Fdocker-stackage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphadej%2Fdocker-stackage/lists"}