bpandey23 commited on
Commit
daeb470
·
verified ·
1 Parent(s): 7d32e22

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -1,8 +1,13 @@
1
  # Use the latest Ubuntu image as the base
2
  FROM ubuntu:latest
3
 
4
- # Update the package lists and install PostgreSQL
5
- RUN apt-get update && apt-get install -y postgresql-13 postgresql-client-13
 
 
 
 
 
6
 
7
  # Copy the entrypoint script to the container
8
  COPY entrypoint.sh /usr/local/bin/
 
1
  # Use the latest Ubuntu image as the base
2
  FROM ubuntu:latest
3
 
4
+ # Add the PostgreSQL repository
5
+ RUN apt-get install -y gnupg
6
+ RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
7
+ RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
8
+
9
+ # Install PostgreSQL 16 client
10
+ RUN apt-get update && apt-get install -y postgresql-client-16
11
 
12
  # Copy the entrypoint script to the container
13
  COPY entrypoint.sh /usr/local/bin/