Skip to content

Commit

Permalink
Add missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyTran732 authored Jan 5, 2025
1 parent bebb0e4 commit 1ece991
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 18 deletions.
7 changes: 4 additions & 3 deletions 13/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 5 additions & 4 deletions 14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
7 changes: 4 additions & 3 deletions 15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 5 additions & 4 deletions 16/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 5 additions & 4 deletions 17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1ece991

Please sign in to comment.