From 09f8550bae35302e33e1b34e0a94b3023970c25e Mon Sep 17 00:00:00 2001 From: Ryan Ahearn Date: Sun, 29 Dec 2024 00:46:02 -0500 Subject: [PATCH] Slim the image down somewhat --- 10/Dockerfile | 10 +--------- 11/Dockerfile | 10 +--------- 12/Dockerfile | 10 +--------- 13/Dockerfile | 10 +--------- 14/Dockerfile | 10 +--------- 15/Dockerfile | 10 +--------- 16/Dockerfile | 10 +--------- template/Dockerfile.template | 10 +--------- 8 files changed, 8 insertions(+), 72 deletions(-) diff --git a/10/Dockerfile b/10/Dockerfile index aba9335..f487f71 100644 --- a/10/Dockerfile +++ b/10/Dockerfile @@ -1,15 +1,7 @@ FROM postgres:10-alpine # Install dependencies -RUN apk update && apk add --no-cache --virtual .build-deps && apk add \ - bash make curl openssh git aws-cli - -# Install python -RUN apk -Uuv add groff less python3 - -# Cleanup -RUN rm /var/cache/apk/* - +RUN apk add --no-cache -uv curl aws-cli python3 VOLUME ["/data/backups"] diff --git a/11/Dockerfile b/11/Dockerfile index 46fef05..a8fa259 100644 --- a/11/Dockerfile +++ b/11/Dockerfile @@ -1,15 +1,7 @@ FROM postgres:11-alpine # Install dependencies -RUN apk update && apk add --no-cache --virtual .build-deps && apk add \ - bash make curl openssh git aws-cli - -# Install python -RUN apk -Uuv add groff less python3 - -# Cleanup -RUN rm /var/cache/apk/* - +RUN apk add --no-cache -uv curl aws-cli python3 VOLUME ["/data/backups"] diff --git a/12/Dockerfile b/12/Dockerfile index 36dcc2d..e707545 100644 --- a/12/Dockerfile +++ b/12/Dockerfile @@ -1,15 +1,7 @@ FROM postgres:12-alpine # Install dependencies -RUN apk update && apk add --no-cache --virtual .build-deps && apk add \ - bash make curl openssh git aws-cli - -# Install python -RUN apk -Uuv add groff less python3 - -# Cleanup -RUN rm /var/cache/apk/* - +RUN apk add --no-cache -uv curl aws-cli python3 VOLUME ["/data/backups"] diff --git a/13/Dockerfile b/13/Dockerfile index 03a9582..00c071f 100644 --- a/13/Dockerfile +++ b/13/Dockerfile @@ -1,15 +1,7 @@ FROM postgres:13-alpine # Install dependencies -RUN apk update && apk add --no-cache --virtual .build-deps && apk add \ - bash make curl openssh git aws-cli - -# Install python -RUN apk -Uuv add groff less python3 - -# Cleanup -RUN rm /var/cache/apk/* - +RUN apk add --no-cache -uv curl aws-cli python3 VOLUME ["/data/backups"] diff --git a/14/Dockerfile b/14/Dockerfile index abd4212..ad5b4da 100644 --- a/14/Dockerfile +++ b/14/Dockerfile @@ -1,15 +1,7 @@ FROM postgres:14-alpine # Install dependencies -RUN apk update && apk add --no-cache --virtual .build-deps && apk add \ - bash make curl openssh git aws-cli - -# Install python -RUN apk -Uuv add groff less python3 - -# Cleanup -RUN rm /var/cache/apk/* - +RUN apk add --no-cache -uv curl aws-cli python3 VOLUME ["/data/backups"] diff --git a/15/Dockerfile b/15/Dockerfile index e714ab7..3b835f1 100644 --- a/15/Dockerfile +++ b/15/Dockerfile @@ -1,15 +1,7 @@ FROM postgres:15-alpine # Install dependencies -RUN apk update && apk add --no-cache --virtual .build-deps && apk add \ - bash make curl openssh git aws-cli - -# Install python -RUN apk -Uuv add groff less python3 - -# Cleanup -RUN rm /var/cache/apk/* - +RUN apk add --no-cache -uv curl aws-cli python3 VOLUME ["/data/backups"] diff --git a/16/Dockerfile b/16/Dockerfile index bfb65e1..8d3da53 100644 --- a/16/Dockerfile +++ b/16/Dockerfile @@ -1,15 +1,7 @@ FROM postgres:16-alpine # Install dependencies -RUN apk update && apk add --no-cache --virtual .build-deps && apk add \ - bash make curl openssh git aws-cli - -# Install python -RUN apk -Uuv add groff less python3 - -# Cleanup -RUN rm /var/cache/apk/* - +RUN apk add --no-cache -uv curl aws-cli python3 VOLUME ["/data/backups"] diff --git a/template/Dockerfile.template b/template/Dockerfile.template index 7c67561..36cc38c 100644 --- a/template/Dockerfile.template +++ b/template/Dockerfile.template @@ -1,15 +1,7 @@ FROM postgres:%(VERSION)s-alpine # Install dependencies -RUN apk update && apk add --no-cache --virtual .build-deps && apk add \ - bash make curl openssh git aws-cli - -# Install python -RUN apk -Uuv add groff less python3 - -# Cleanup -RUN rm /var/cache/apk/* - +RUN apk add --no-cache -uv curl aws-cli python3 VOLUME ["/data/backups"]