Sign inSign up

pbrisbin/heroku-haskell-stack

By pbrisbin

•Updated over 10 years ago

Build stack-based projects for the Heroku Docker CLI.

Image
0

1.2K

pbrisbin/heroku-haskell-stack repository overview

⁠Heroku Haskell Docker Image

This image is for use with Heroku Docker CLI.

⁠Usage

To build, your project must have

  • A stack.yaml
  • A cabal file
  • A LICENSE

This build stops after stack build --dependencies-only, so your own Dockerfile should COPY in the appropriate source files and RUN stack install itself.

Example:

FROM pbrisbin/heroku-haskell-stack:1.0.2
MAINTAINER Pat Brisbin <[email protected]>

COPY src /app/user/src
COPY app /app/user/app
RUN stack install

Executables will be installed in /app/user/bin, which is added to $PATH, in case you want to set one as CMD.

To deploy, your project must have

  • A Procfile:

    web: ./bin/foo
    
  • An app.json:

    {
      "name": "foo",
      "description": "Doesn't matter"
    }
    
  • A docker-compose.yml

    web:
      build: .
    

Then run heroku docker:release

Tag summary

Content type

Image

Digest

Size

477.6 MB

Last updated

over 10 years ago

docker pull pbrisbin/heroku-haskell-stack