pict-rs/docker/object-storage/Dockerfile.postgres
asonix 2d92cd861d
All checks were successful
/ tests (push) Successful in 2m22s
/ deny (push) Successful in 28s
/ check (aarch64-unknown-linux-musl) (push) Successful in 2m52s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 2m50s
/ check (x86_64-unknown-linux-musl) (push) Successful in 2m1s
/ clippy (push) Successful in 2m7s
Docker env: update postgres, garage
2024-07-19 17:36:22 -05:00

9 lines
432 B
Docker

FROM postgres:16-alpine
COPY --chown=0:70 --chmod=640 ./out/postgres.key ./etc/
COPY --chown=0:70 --chmod=640 ./out/postgres.crt ./etc/
COPY --chown=0:70 --chmod=640 ./out/pictrsCA.crt ./etc/
COPY --chown=0:70 --chmod=640 ./out/pictrsCA.crl ./etc/
CMD ["-c", "ssl=on", "-c", "ssl_cert_file=/etc/postgres.crt", "-c", "ssl_key_file=/etc/postgres.key", "-c", "ssl_ca_file=/etc/pictrsCA.crt", "-c", "ssl_crl_file=/etc/pictrsCA.crl"]