File size: 819 Bytes
dd1c000 9647270 2d6a7aa ecf490b 2d6a7aa ecf490b 2d6a7aa a07935d 00a53d1 048e3aa 00a53d1 f7071ff 470ea7a 2d6a7aa d86b156 9647270 2d6a7aa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
FROM ubuntu:22.04
# Install necessary packages
RUN apt-get update && apt-get install -y \
curl \
wget \
unzip \
git \
python3-pip \
libmagic-dev \
lsb-release \
lsof \
software-properties-common
# # Add the PostgreSQL repository
# RUN apt-get install -y gnupg
# RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
# RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
# # Install PostgreSQL 16 client
# RUN apt-get update && apt-get install -y postgresql-client-16
COPY ./ /postgres/
WORKDIR postgres
RUN pwd
# Install Python dependencies
RUN pip3 install -r requirements.txt
# Expose ports
EXPOSE 8501
CMD ["python3", "-m", "streamlit", "run", "app.py"]
|