bpandey23 commited on
Commit
2d6a7aa
1 Parent(s): 00a53d1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -24
Dockerfile CHANGED
@@ -1,34 +1,35 @@
1
  FROM ubuntu:22.04
2
 
3
- # # Install necessary packages
4
- # RUN apt-get update && apt-get install -y \
5
- # curl \
6
- # wget \
7
- # unzip \
8
- # git \
9
- # python3-pip \
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
  WORKDIR postgres
23
 
24
  RUN pwd
25
 
26
  # Install Python dependencies
27
- # RUN cd postgres && pip install -r requirements.txt
 
 
 
28
 
29
- # # Expose ports
30
- # EXPOSE 8501
31
 
32
- # WORKDIR postgres
33
 
34
- # CMD ["python3", "-m", "streamlit", "run", "app.py"]
 
1
  FROM ubuntu:22.04
2
 
3
+ # Install necessary packages
4
+ RUN apt-get update && apt-get install -y \
5
+ curl \
6
+ wget \
7
+ unzip \
8
+ git \
9
+ python3-pip \
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
  WORKDIR postgres
24
 
25
  RUN pwd
26
 
27
  # Install Python dependencies
28
+ RUN cd postgres && pip install -r requirements.txt
29
+
30
+ # Expose ports
31
+ EXPOSE 8501
32
 
 
 
33
 
 
34
 
35
+ CMD ["python3", "-m", "streamlit", "run", "app.py"]