-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c25f3d0
commit bebb0e4
Showing
5 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
ARG VERSION=13 | ||
ARG UID=200012 | ||
ARG GID=200012 | ||
|
||
FROM postgres:${VERSION}-alpine | ||
ARG UID | ||
ARG GID | ||
|
||
LABEL maintainer="Thien Tran [email protected]" | ||
|
||
|
@@ -9,6 +13,12 @@ RUN apk -U upgrade \ | |
&& rm -rf /var/cache/apk/* \ | ||
&& 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 {} \; | ||
|
||
COPY --from=ghcr.io/polarix-containers/hardened_malloc:latest /install /usr/local/lib/ | ||
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
ARG VERSION=14 | ||
ARG UID=200012 | ||
ARG GID=200012 | ||
|
||
FROM postgres:${VERSION}-alpine | ||
ARG UID | ||
ARG GID | ||
|
||
LABEL maintainer="Thien Tran [email protected]" | ||
|
||
|
@@ -9,6 +13,12 @@ RUN apk -U upgrade \ | |
&& rm -rf /var/cache/apk/* \ | ||
&& 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 {} \; | ||
|
||
COPY --from=ghcr.io/polarix-containers/hardened_malloc:latest /install /usr/local/lib/ | ||
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
ARG VERSION=15 | ||
ARG UID=200012 | ||
ARG GID=200012 | ||
|
||
FROM postgres:${VERSION}-alpine | ||
ARG UID | ||
ARG GID | ||
|
||
LABEL maintainer="Thien Tran [email protected]" | ||
|
||
|
@@ -9,6 +13,12 @@ RUN apk -U upgrade \ | |
&& rm -rf /var/cache/apk/* \ | ||
&& 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 {} \; | ||
|
||
COPY --from=ghcr.io/polarix-containers/hardened_malloc:latest /install /usr/local/lib/ | ||
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
ARG VERSION=16 | ||
ARG UID=200012 | ||
ARG GID=200012 | ||
|
||
FROM postgres:${VERSION}-alpine | ||
ARG UID | ||
ARG GID | ||
|
||
LABEL maintainer="Thien Tran [email protected]" | ||
|
||
|
@@ -9,6 +13,12 @@ RUN apk -U upgrade \ | |
&& rm -rf /var/cache/apk/* \ | ||
&& 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 {} \; | ||
|
||
COPY --from=ghcr.io/polarix-containers/hardened_malloc:latest /install /usr/local/lib/ | ||
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
ARG VERSION=17 | ||
ARG UID=200012 | ||
ARG GID=200012 | ||
|
||
FROM postgres:${VERSION}-alpine | ||
ARG UID | ||
ARG GID | ||
|
||
LABEL maintainer="Thien Tran [email protected]" | ||
|
||
|
@@ -9,6 +13,12 @@ RUN apk -U upgrade \ | |
&& rm -rf /var/cache/apk/* \ | ||
&& rm /usr/local/bin/gosu | ||
|
||
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 {} \; | ||
|
||
COPY --from=ghcr.io/polarix-containers/hardened_malloc:latest /install /usr/local/lib/ | ||
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so" | ||
|
||
|