Skip to content

Commit

Permalink
Merge pull request #1825 from IntersectMBO/fix/fix-backend-image-build
Browse files Browse the repository at this point in the history
fix: fix backend build providing postgresql@14 in the base Dockerfile
  • Loading branch information
MSzalowski authored Aug 26, 2024
2 parents 7784260 + c54968c commit 5b37697
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions govtool/backend/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

0 comments on commit 5b37697

Please sign in to comment.