docker-postgres/Dockerfile

18 lines
405 B
Docker
Raw Normal View History

FROM postgres:16.6-bookworm
2022-06-06 10:28:01 +00:00
COPY initScript/*.sh /docker-entrypoint-initdb.d/
2023-05-11 09:39:09 +00:00
COPY backup-database.sh /backup-database.sh
2022-06-06 10:28:01 +00:00
RUN localedef -i fr_FR -c -f UTF-8 -A /usr/share/locale/locale.alias fr_FR.UTF-8
2023-12-02 20:55:46 +00:00
RUN apt update && apt install pgtop
2022-06-06 10:28:01 +00:00
ENV LANG fr_FR.utf8
ENV PURGE_OLD false
2022-06-06 10:28:01 +00:00
ENTRYPOINT ["docker-entrypoint.sh"]
2024-03-03 14:47:16 +00:00
# this is the default but in case of
STOPSIGNAL SIGTERM
2022-06-06 10:28:01 +00:00
EXPOSE 5432
CMD ["postgres"]