From a401057a701285e7346d5087b98e9e0bd9f8c29d Mon Sep 17 00:00:00 2001 From: Vincenz <63001507+vinc3nz@users.noreply.github.com> Date: Mon, 11 Dec 2023 18:37:36 +0100 Subject: [PATCH] PosgreSQL 16 (#210) * add PostgreSQL 16 --------- Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com> --- .github/workflows/postgres.yml | 1 + postgres/16/Dockerfile | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 postgres/16/Dockerfile diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index c5c30ab..3f863ec 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -23,6 +23,7 @@ jobs: - 12 - 13 - 14 + - 16 steps: - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 diff --git a/postgres/16/Dockerfile b/postgres/16/Dockerfile new file mode 100644 index 0000000..a4eec38 --- /dev/null +++ b/postgres/16/Dockerfile @@ -0,0 +1,21 @@ +# ---------------------------------- +# Environment: Postgres DB +# ---------------------------------- +FROM --platform=$TARGETOS/$TARGETARCH postgres:16-alpine + +LABEL author="Parker" maintainer="parker@pterodactyl.io" + +# UID 999 is the default pterodactyl user +RUN adduser -D -h /home/container container + +RUN apk add --no-cache tini curl iproute2 ca-certificates fontconfig git openssl sqlite tar tzdata +USER container +ENV HOME /home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/sbin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file