docker-postgres/Dockerfile
RouxAntoine d795a16421
All checks were successful
Main / build (push) Successful in 7m35s
feature: purge backup older than 14 days
2023-12-03 15:33:17 +01:00

16 lines
349 B
Docker

FROM postgres:16.1-bookworm
COPY initScript/*.sh /docker-entrypoint-initdb.d/
COPY backup-database.sh /backup-database.sh
RUN localedef -i fr_FR -c -f UTF-8 -A /usr/share/locale/locale.alias fr_FR.UTF-8
RUN apt update && apt install pgtop
ENV LANG fr_FR.utf8
ENV PURGE_OLD false
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 5432
CMD ["postgres"]