bpandey23 commited on
Commit
e8bc6b1
1 Parent(s): daeb470

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -5
Dockerfile CHANGED
@@ -1,12 +1,21 @@
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
 
1
  # Use the latest Ubuntu image as the base
2
  FROM ubuntu:latest
3
 
4
+ # Install necessary packages
5
+ RUN apt-get update && apt-get install -y \
6
+ curl \
7
+ wget \
8
+ unzip \
9
+ git \
10
+ python3-pip \
11
+ libmagic-dev \
12
+ lsb-release \
13
+ lsof \
14
+ postgresql \
15
 
16
+ #NEEDED FOR POSTGRES16
17
+ RUN curl -fsSL --insecure https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
18
+
19
  RUN apt-get update && apt-get install -y postgresql-client-16
20
 
21
  # Copy the entrypoint script to the container