backup / restore improvement

This commit is contained in:
Stefan Hardegger
2025-09-26 22:34:21 +02:00
parent 7ca4823573
commit 3bc8bb9e0c

View File

@@ -2,8 +2,13 @@ FROM openjdk:17-jdk-slim
WORKDIR /app WORKDIR /app
# Install Maven and PostgreSQL client tools # Install Maven and PostgreSQL 15 client tools
RUN apt-get update && apt-get install -y maven postgresql-client && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y wget ca-certificates gnupg maven && \
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
apt-get update && \
apt-get install -y postgresql-client-15 && \
rm -rf /var/lib/apt/lists/*
# Copy source code # Copy source code
COPY . . COPY . .