|
FROM ubuntu:22.04 |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
curl \ |
|
wget \ |
|
unzip \ |
|
git \ |
|
python3-pip \ |
|
libmagic-dev \ |
|
lsb-release \ |
|
lsof \ |
|
software-properties-common |
|
|
|
|
|
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 - |
|
|
|
|
|
RUN apt-get update && apt-get install -y postgresql-client-16 |
|
|
|
|
|
RUN pip3 install -r requirements.txt |
|
|
|
|
|
EXPOSE 8501 |
|
|
|
WORKDIR postgres |
|
|
|
CMD ["python3", "-m", "streamlit", "run", "app.py"] |
|
|