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