Skip to content

Commit

Permalink
Slim the image down somewhat (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahearn authored Jan 2, 2025
1 parent 402ad8a commit 23f5ab3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 72 deletions.
10 changes: 1 addition & 9 deletions 10/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

Expand Down
10 changes: 1 addition & 9 deletions 11/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

Expand Down
10 changes: 1 addition & 9 deletions 12/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

Expand Down
10 changes: 1 addition & 9 deletions 13/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

Expand Down
10 changes: 1 addition & 9 deletions 14/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

Expand Down
10 changes: 1 addition & 9 deletions 15/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

Expand Down
10 changes: 1 addition & 9 deletions 16/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

Expand Down
10 changes: 1 addition & 9 deletions template/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -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"]

Expand Down

0 comments on commit 23f5ab3

Please sign in to comment.