tests/postgres/Dockerfile
raw| 1 | ARG VERSION |
| 2 | FROM postgres:${VERSION}-alpine |
| 3 | |
| 4 | # Copy SSL certificate (and key) |
| 5 | COPY certs/server.crt /var/lib/postgresql/server.crt |
| 6 | COPY certs/ca.crt /var/lib/postgresql/ca.crt |
| 7 | COPY keys/server.key /var/lib/postgresql/server.key |
| 8 | COPY postgres/pg_hba.conf /var/lib/postgresql/pg_hba.conf |
| 9 | |
| 10 | # Fix permissions |
| 11 | RUN chown 70:70 /var/lib/postgresql/server.crt /var/lib/postgresql/server.key |
| 12 | RUN chmod 0600 /var/lib/postgresql/server.crt /var/lib/postgresql/server.key |