This commit is contained in:
Manav Rathi
2024-09-19 20:38:27 +05:30
parent 6139ed45cd
commit e6d7d2298c

View File

@@ -3,16 +3,11 @@ FROM ubuntu:latest
RUN apt-get update && apt-get install -y curl gnupg
RUN apt-get install -y tini
# Install pg_dump (via Postgres client)
# Install Postgres client (needed for restores, and for local testing)
# https://www.postgresql.org/download/linux/ubuntu/
#
# We don't need it for production backups, but this is useful for local testing.
RUN \
apt-get install -y lsb-release && \
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
apt-get update && \
apt-get -y install postgresql-client-12
# We don't have specific dependencies on Postgres, so just use the latest.
RUN apt-get update && apt-get -y install postgresql-client
# Install SCW CLI
# Latest release: https://github.com/scaleway/scaleway-cli/releases/latest