10 lines
431 B
Docker
10 lines
431 B
Docker
FROM postgres:17-alpine
|
|
RUN apk add --no-cache python3 py3-pip py3-psycopg2 && \
|
|
python3 -m venv --system-site-packages /opt/patroni && \
|
|
/opt/patroni/bin/pip install --no-cache-dir 'patroni[etcd3]==4.1.5'
|
|
COPY patroni.yaml /etc/patroni.yaml
|
|
COPY bootstrap.sh /usr/local/bin/bootstrap-objectstore
|
|
RUN chmod 755 /usr/local/bin/bootstrap-objectstore
|
|
USER postgres
|
|
ENTRYPOINT ["/opt/patroni/bin/patroni", "/etc/patroni.yaml"]
|