bpandey23 commited on
Commit
cd5e0f7
1 Parent(s): 3bd145b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -17,8 +17,12 @@ RUN apt-get update && apt-get install -y \
17
  # Install the PostgreSQL 16 repository key
18
  RUN curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
19
 
20
- # Install PostgreSQL 16 client
21
- RUN apt-get update && apt-get install -y postgresql-client-16
 
 
 
 
22
 
23
  # Copy the entrypoint script to the container
24
  COPY entrypoint.sh /usr/local/bin/
 
17
  # Install the PostgreSQL 16 repository key
18
  RUN curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
19
 
20
+ # Install PostgreSQL 16 client and server
21
+ RUN apt-get update && apt-get install -y postgresql-client-16 postgresql-server-dev-16
22
+
23
+ # Create the PostgreSQL data directory and set permissions
24
+ RUN mkdir -p /var/lib/postgresql/data && \
25
+ chown -R postgres:postgres /var/lib/postgresql/data
26
 
27
  # Copy the entrypoint script to the container
28
  COPY entrypoint.sh /usr/local/bin/