diff --git a/api/.dockerignore b/api/.dockerignore index d7e4614..eea7aaf 100644 --- a/api/.dockerignore +++ b/api/.dockerignore @@ -1,2 +1,3 @@ .stack-work dist-newstyle +Dockerfile \ No newline at end of file diff --git a/api/Dockerfile b/api/Dockerfile index 00ab234..001b851 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,9 +1,10 @@ FROM haskell:8 WORKDIR /opt/aeris +RUN apt-get update && apt-get install -y postgresql postgresql-contrib libpq-dev RUN cabal update COPY ./aeris.cabal /opt/aeris/aeris.cabal RUN cabal build --only-dependencies -j4 COPY . /opt/aeris RUN cabal install -CMD aeris +CMD aeris-exe