Build Docker images with stack instead of cabal

This commit is contained in:
Michael Snoyman 2015-06-19 09:01:53 +03:00
parent ebe470fe68
commit b71e551737
2 changed files with 5 additions and 5 deletions

View File

@ -7,10 +7,10 @@ TAG=$(git rev-parse --short HEAD)
(
rm -rf docker/app
mkdir -p docker/app
yesod keter
cd docker/app
tar xf ../../stackage-server.keter
cd ..
stack build
cp $(stack exec which stackage-server) docker/app
cp -r static config docker/app
cd docker
docker build -t snoyberg/stackage-server:$TAG .
docker push snoyberg/stackage-server:$TAG
)

View File

@ -6,5 +6,5 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libpq5 libgmp10 git
ADD app /app
WORKDIR /app
ENTRYPOINT ./dist/build/stackage-server/stackage-server Production
ENTRYPOINT ./stackage-server Production
EXPOSE 3000