Include docker stuff

This commit is contained in:
Michael Snoyman 2015-05-21 09:54:57 +03:00
parent 2feecaa88a
commit 59fac14f73
3 changed files with 24 additions and 0 deletions

1
.gitignore vendored
View File

@ -19,3 +19,4 @@ TAGS
/tarballs/
stackage-server.keter
/stackage-content/
/docker/app/

13
docker.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -exu
(
rm -rf docker/app
mkdir -p docker/app
yesod keter
cd docker/app
tar xf ../../stackage-server.keter
cd ..
docker build -t snoyberg/stackage-server .
)

10
docker/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM ubuntu:14.04
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libpq5 libgmp10 git
ADD app /app
WORKDIR /app
ENTRYPOINT ./dist/build/stackage-server/stackage-server Production
EXPOSE 3000