Initial commit
Some checks failed
Build 14 / Build & push new image (push) Has been cancelled
Build 17 / Build & push new image (push) Successful in 10m50s
Build 16 / Build & push new image (push) Successful in 10m42s
Build 15 / Build & push new image (push) Successful in 10m47s
Build 13 / Build & push new image (push) Successful in 10m47s

This commit is contained in:
2025-02-07 09:28:07 +01:00
commit c349443dc4
12 changed files with 920 additions and 0 deletions

26
16/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
ARG VERSION=16
ARG UID=200012
ARG GID=200012
FROM postgres:${VERSION}-alpine
ARG UID
ARG GID
LABEL maintainer="Lukas Raub titanz@pm.me"
RUN apk -U upgrade \
&& apk add libstdc++ shadow \
&& rm /usr/local/bin/gosu /usr/local/bin/su-exec
RUN --network=none \
usermod -u ${UID} postgres \
&& groupmod -g ${GID} postgres \
&& find / -user 70 -exec chown -h postgres {} \; \
&& find / -group 70 -exec chgrp -h postgres {} \; \
&& apk del shadow \
&& rm -rf /var/cache/apk/*
COPY --from=git.conorz.at/titanz-containers/hardened_malloc:latest /install /usr/local/lib/
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so"
USER postgres