Reputation: 1
I used DockerFile to build image where i want to install postgre 15.5. I have used below line in my code. But seems when i go into the container using docker exec and then check for postgre version installed it says it is 15.3 version
# install postgres
RUN zypper --non-interactive --quiet addrepo --refresh -p 90 http://download.opensuse.org/repositories/server:database:postgresql/15.5/ PostgreSQL
RUN zypper --gpg-auto-import-keys ref
RUN zypper --non-interactive in postgresql postgresql-server postgresql-contrib
I need 15.5 to be installed. Can anyone help?
Tried different option but did not work
Upvotes: 0
Views: 120
Reputation: 31
try using this command on your docker file RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list and using your custom version from this link: http://apt.postgresql.org/pub/repos/apt/pool/15/p/postgresql-15/ hope its help
Upvotes: 0