Skip to content

Commit

Permalink
Revert "joink postgres16 from another image while we wait for the off…
Browse files Browse the repository at this point in the history
…icial packages in amazonlinux:2023"

This reverts commit 470933e.
  • Loading branch information
tokarls committed Nov 22, 2024
1 parent b58ebd2 commit bd7c1dc
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions backup/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
# amazonlinux does not provide packages for postgresql16 as of now
# https://github.com/amazonlinux/amazon-linux-2023/issues/516
FROM public.ecr.aws/docker/library/postgres:16 as pg-client
FROM amazonlinux:2023

RUN dnf update -y \
&& dnf install -y libpq awscli jq \
&& dnf clean all

COPY --from=pg-client /usr/lib/postgresql/16 /usr/lib/postgresql/16
ENV LD_LIBRARY_PATH="/usr/lib/postgresql/16/lib:${LD_LIBRARY_PATH}"
ENV PATH="/usr/lib/postgresql/16/bin:${PATH}"
RUN yum update && yum install -y postgresql16 awscli jq

COPY backup.sh /backup.sh

Expand Down

0 comments on commit bd7c1dc

Please sign in to comment.