Skip to content

Commit

Permalink
Fix permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyTran732 authored Sep 9, 2024
1 parent a702afc commit db9c275
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion unprivileged-mainline/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ FROM ghcr.io/nginxinc/nginx-unprivileged:mainline-alpine

LABEL maintainer="Thien Tran [email protected]"

USER root

RUN apk -U upgrade \
&& apk add libstdc++ \
&& 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"
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so"

USER $UID
6 changes: 5 additions & 1 deletion unprivileged-stable/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ FROM ghcr.io/nginxinc/nginx-unprivileged:stable-alpine

LABEL maintainer="Thien Tran [email protected]"

USER root

RUN apk -U upgrade \
&& apk add libstdc++ \
&& 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"
ENV LD_PRELOAD="/usr/local/lib/libhardened_malloc.so"

USER $UID

0 comments on commit db9c275

Please sign in to comment.