Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM alpine:latest
- ENV DEBIAN_FRONTEND=noninteractive
- RUN apk update && \
- apk add postgresql && \
- mkdir /run/postgresql && \
- chown -R postgres:postgres /run/postgresql
- USER postgres
- RUN pg_ctl init -D /var/lib/postgresql/data && \
- echo "host all all 0.0.0.0/0 md5" >> /var/lib/postgresql/data/pg_hba.conf && \
- echo "local all postgres peer" >> /var/lib/postgresql/data/pg_hba.conf && \
- echo "listen_addresses='*'" >> /var/lib/postgresql/data/postgresql.conf && \
- chmod 0700 /var/lib/postgresql/data
- ENTRYPOINT ["pg_ctl", "start", "-D", "/var/lib/postgresql/data"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement