Browse Source

Build Docker images with stack instead of cabal

no-database
Michael Snoyman 7 years ago
parent
commit
b71e551737
  1. 8
      docker.sh
  2. 2
      docker/Dockerfile

8
docker.sh

@ -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
)

2
docker/Dockerfile

@ -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

Loading…
Cancel
Save