diff --git a/Dockerfile b/Dockerfile index 732af81..1c383e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,13 +4,14 @@ WORKDIR /app ARG DEBIAN_FRONTEND=noninteractive ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=TRUE +ARG POSTGRES_VERSION=17 RUN apt-get update \ && apt-get install -y wget lsb-release \ && /bin/bash -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-client \ + && apt-get install -y postgresql-client-$POSTGRES_VERSION \ && /usr/local/bin/cpanm DBI DBD::Pg COPY . .