Update Dockerfile
Browse files- Dockerfile +7 -4
Dockerfile
CHANGED
@@ -10,10 +10,14 @@ RUN apt-get update && apt-get install -y \
|
|
10 |
libmagic-dev \
|
11 |
lsb-release \
|
12 |
lsof \
|
13 |
-
|
14 |
|
15 |
-
#
|
16 |
-
RUN
|
|
|
|
|
|
|
|
|
17 |
RUN apt-get update && apt-get install -y postgresql-client-16
|
18 |
|
19 |
# Install Python dependencies
|
@@ -24,5 +28,4 @@ EXPOSE 8501
|
|
24 |
|
25 |
WORKDIR postgres
|
26 |
|
27 |
-
|
28 |
CMD ["python3", "-m", "streamlit", "run", "app.py"]
|
|
|
10 |
libmagic-dev \
|
11 |
lsb-release \
|
12 |
lsof \
|
13 |
+
software-properties-common
|
14 |
|
15 |
+
# Add the PostgreSQL repository
|
16 |
+
RUN apt-get install -y gnupg
|
17 |
+
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
|
18 |
+
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
19 |
+
|
20 |
+
# Install PostgreSQL 16 client
|
21 |
RUN apt-get update && apt-get install -y postgresql-client-16
|
22 |
|
23 |
# Install Python dependencies
|
|
|
28 |
|
29 |
WORKDIR postgres
|
30 |
|
|
|
31 |
CMD ["python3", "-m", "streamlit", "run", "app.py"]
|