This commit is contained in:
2024-12-06 11:32:50 +01:00
parent deef51e042
commit 2ded4f6ed9
3 changed files with 55 additions and 3 deletions

View File

@ -14,6 +14,23 @@ RUN tar -xf pg16.tar.gz
RUN cd postgresql* && ./configure --prefix=/postgres/16 && make world-bin && make install
FROM ubuntu:noble
RUN apt update && apt install -y libicu74 libreadline8t64 curl wget nano && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install -y \
libicu74 \
libreadline8t64 \
curl \
wget \
nano \
locales \
&& rm -rf /var/lib/apt/lists/*
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG=en_US.utf8
ENV POSTGRES_USER=postgres
COPY --from=build17 /postgres/17 /postgres/17
COPY --from=build16 /postgres/16 /postgres/16
COPY --from=build16 /postgres/16 /postgres/16
COPY migrate.sh /migrate.sh
RUN chmod +x migrate.sh
CMD ["/migrate.sh"]