From c54968c7732d85bd9866d104f6aead76a38ce5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Mon, 26 Aug 2024 17:08:34 +0200 Subject: [PATCH] fix: fix backend build providing postgresql@14 in be base Dockerile --- govtool/backend/Dockerfile.base | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/govtool/backend/Dockerfile.base b/govtool/backend/Dockerfile.base index 8f4e4c356..6dd3c75a3 100644 --- a/govtool/backend/Dockerfile.base +++ b/govtool/backend/Dockerfile.base @@ -6,5 +6,13 @@ FROM haskell:9.2.7-buster WORKDIR /src + +RUN apt-get update && \ + apt-get install -y wget lsb-release && \ + sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \ + wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \ + apt-get update && \ + apt-get install -y postgresql-14 libpq-dev + COPY . . RUN cabal update && cabal configure && cabal install --only-dependencies && rm -rf /src/*