-
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
bebb0e4
commit 1ece991
Showing
5 changed files
with
23 additions
and
18 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 |
---|---|---|
|
@@ -9,15 +9,16 @@ ARG GID | |
LABEL maintainer="Thien Tran [email protected]" | ||
|
||
RUN apk -U upgrade \ | ||
&& apk add libstdc++ \ | ||
&& rm -rf /var/cache/apk/* \ | ||
&& 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 {} \; | ||
&& find / -group 70 -exec chgrp -h postgres {} \; \ | ||
&& apk del shadow \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
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 |
---|---|---|
|
@@ -9,16 +9,17 @@ ARG GID | |
LABEL maintainer="Thien Tran [email protected]" | ||
|
||
RUN apk -U upgrade \ | ||
&& apk add libstdc++ \ | ||
&& rm -rf /var/cache/apk/* \ | ||
&& 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 {} \; | ||
|
||
&& find / -group 70 -exec chgrp -h postgres {} \; \ | ||
&& apk del shadow \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
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 |
---|---|---|
|
@@ -9,15 +9,16 @@ ARG GID | |
LABEL maintainer="Thien Tran [email protected]" | ||
|
||
RUN apk -U upgrade \ | ||
&& apk add libstdc++ \ | ||
&& rm -rf /var/cache/apk/* \ | ||
&& 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 {} \; | ||
&& find / -group 70 -exec chgrp -h postgres {} \; \ | ||
&& apk del shadow \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
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 |
---|---|---|
|
@@ -9,15 +9,16 @@ ARG GID | |
LABEL maintainer="Thien Tran [email protected]" | ||
|
||
RUN apk -U upgrade \ | ||
&& apk add libstdc++ \ | ||
&& rm -rf /var/cache/apk/* \ | ||
&& apk add libstdc++ shadow \ | ||
&& rm /usr/local/bin/gosu /usr/local/bin/su-exec | ||
|
||
RUN --network=none \ | ||
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 {} \; | ||
&& find / -group 70 -exec chgrp -h postgres {} \; \ | ||
&& apk del shadow \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
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 |
---|---|---|
|
@@ -9,15 +9,16 @@ ARG GID | |
LABEL maintainer="Thien Tran [email protected]" | ||
|
||
RUN apk -U upgrade \ | ||
&& apk add libstdc++ \ | ||
&& rm -rf /var/cache/apk/* \ | ||
&& rm /usr/local/bin/gosu | ||
&& 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 {} \; | ||
&& find / -group 70 -exec chgrp -h postgres {} \; \ | ||
&& apk del shadow \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
COPY --from=ghcr.io/polarix-containers/hardened_malloc:latest /install /usr/local/lib/ | ||
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so" | ||
|