Skip to content

Commit

Permalink
add --no-same-owner to tar for better compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
RoadRunnr committed Feb 15, 2024
1 parent 7394779 commit 5b798bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RUN set -xe \
quilt \
&& export ERL_TOP="/usr/src/otp_src_${OTP_VERSION%%@*}" \
&& mkdir -vp $ERL_TOP \
&& tar -xzf otp-src.tar.gz -C $ERL_TOP --strip-components=1 \
&& tar -xzf otp-src.tar.gz -C $ERL_TOP --strip-components=1 --no-same-owner \
&& rm otp-src.tar.gz \
&& ( cd $ERL_TOP \
&& if [ -f /patches/$OTP_VERSION/series ]; then QUILT_PATCHES=/patches/$OTP_VERSION quilt push -a ; fi \
Expand All @@ -67,7 +67,7 @@ RUN set -xe \
&& curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" \
&& echo "${REBAR3_DOWNLOAD_SHA256} rebar3-src.tar.gz" | sha256sum -c - \
&& mkdir -p /usr/src/rebar3-src \
&& tar -xzf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \
&& tar -xzf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 --no-same-owner \
&& rm rebar3-src.tar.gz \
&& cd /usr/src/rebar3-src \
&& HOME=$PWD ./bootstrap \
Expand Down

0 comments on commit 5b798bd

Please sign in to comment.