postgres / Dockerfile
bpandey23's picture
Update Dockerfile
f7071ff verified
raw
history blame
619 Bytes
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 \
postgresql-client-16
# NEEDED FOR POSTGRES16
RUN curl -fsSL --insecure https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
RUN apt-get update && apt-get install -y postgresql-client-16
# Install Python dependencies
RUN pip3 install -r requirements.txt
# Expose ports
EXPOSE 8501
WORKDIR postgres
CMD ["python3", "-m", "streamlit", "run", "app.py"]