Skip to content

Commit

Permalink
Instructions for running in a docker container.
Browse files Browse the repository at this point in the history
If you have docker installed, just run `docker build .` in the directory
containing `Dockerfile` and you will get an image that runs
hackage-server with the default settings in an isolated environment.

A prebuilt image is available at
https://index.docker.io/u/zsol/hackage-server/, which you can use by
running `docker run zsol/hackage-server`.
  • Loading branch information
zsol committed Sep 10, 2013
1 parent 6f1fa59 commit 0895367
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
@@ -0,0 +1,20 @@
from zsol/haskell-platform-2013.2.0.0

env HOME /home/haskell

# dependencies
run sudo apt-get install unzip libicu48 libicu-dev
run cabal update
run curl -LO https://github.com/haskell/hackage-server/archive/master.zip

run unzip master.zip

workdir /home/haskell/hackage-server-master

run cabal install --only-dependencies
run cabal configure && cabal build

run ./dist/build/hackage-server/hackage-server init --static-dir=datafiles/

entrypoint ["./dist/build/hackage-server/hackage-server", "run", "--static-dir=datafiles/"]
expose 8080

0 comments on commit 0895367

Please sign in to comment.