28 lines
672 B
Docker
28 lines
672 B
Docker
FROM danielberteaud/alpine:24.4-1
|
|
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
|
|
|
|
ARG PG_FROM= \
|
|
PG_TO=
|
|
|
|
ENV LANG=fr_FR.utf8 \
|
|
TZ=Europe/Paris
|
|
|
|
COPY --from=walg /usr/local/bin/wal-g /usr/local/bin/wal-g
|
|
|
|
RUN set -eux &&\
|
|
apk --no-cache upgrade &&\
|
|
for VER in 12 13 14 15; do \
|
|
apk --no-cache add postgresql${PG_VERSION} \
|
|
postgresql${PG_VERSION}-client \
|
|
postgresql${PG_VERSION}-contrib \
|
|
done
|
|
apk --no-cache add icu-data-full \
|
|
tzdata &&\
|
|
mkdir -p /run/postgresql &&\
|
|
chown -R postgres:postgres /run/postgresql
|
|
|
|
COPY root/ /
|
|
|
|
USER postgres
|
|
CMD ["pg-major-upgrade"]
|