Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -1,8 +1,13 @@
|
|
1 |
# Use the latest Ubuntu image as the base
|
2 |
FROM ubuntu:latest
|
3 |
|
4 |
-
#
|
5 |
-
RUN apt-get
|
|
|
|
|
|
|
|
|
|
|
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/
|