fix: fix dockerfile build

This commit is contained in:
Bluub
2022-02-10 18:02:34 +01:00
parent 84add6316e
commit 0e1bfda9f0
2 changed files with 3 additions and 1 deletions

View File

@@ -1,2 +1,3 @@
.stack-work
dist-newstyle
Dockerfile

View File

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