Team Ai
Apppublic

GamerC0der/postgres

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
Dockerfile21 linesDownload Raw Back to root
1FROM postgres:162 3ENV POSTGRES_USER=myuser4ENV POSTGRES_PASSWORD=mypassword5ENV POSTGRES_DB=mydatabase6 7EXPOSE 5432 78608 9RUN sed -i '/^#port =/c\port = 5432' /usr/share/postgresql/postgresql.conf.sample10 11RUN apt-get update \12 && apt-get install -y python3 python3-pip python3-venv \13 && pip3 install --break-system-packages flask psycopg2-binary \14 && rm -rf /var/lib/apt/lists/*15 16WORKDIR /app17COPY app.py /app/app.py18COPY entrypoint.sh /entrypoint.sh19RUN chmod +x /entrypoint.sh20 21ENTRYPOINT ["/entrypoint.sh"]