From 0e1bfda9f00158403d9c0657d9e47292e0250bc3 Mon Sep 17 00:00:00 2001 From: Bluub Date: Thu, 10 Feb 2022 18:02:34 +0100 Subject: [PATCH] fix: fix dockerfile build --- api/.dockerignore | 1 + api/Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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