Dockerfile 948 B

1234567891011121314151617181920212223
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. MZFROM test-certs as certs
  10. FROM postgres:17.4
  11. ENV POSTGRES_PASSWORD=postgres
  12. RUN apt-get update --fix-missing && TZ=UTC DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends postgresql-17-cron eatmydata \
  13. && apt-get clean \
  14. && rm -rf /var/lib/apt/lists/* \
  15. && rm -rf /usr/share/doc/* /usr/share/man/* /usr/share/info/* /usr/share/locale/* /var/cache/* /var/log/*
  16. COPY --chown=postgres --from=certs /secrets/* /share/secrets/
  17. COPY pg_hba.conf /share/conf/pg_hba.conf
  18. COPY setup-postgres.sh /docker-entrypoint-initdb.d/setup-postgres.sh