File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
58
58
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
59
59
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
60
60
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
61
- && mkdir -p /opt/yarn \
62
- && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \
61
+ && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
62
+ && ln -s /opt/ yarn-v$YARN_VERSION /opt/yarn \
63
63
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
64
64
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \
65
65
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ RUN set -ex \
58
58
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
59
59
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
60
60
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
61
- && mkdir -p /opt/yarn \
62
- && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \
61
+ && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
62
+ && ln -s /opt/ yarn-v$YARN_VERSION /opt/yarn \
63
63
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
64
64
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \
65
65
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz
Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ RUN set -ex \
53
53
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
54
54
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
55
55
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
56
- && mkdir -p /opt/yarn \
57
- && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \
56
+ && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
57
+ && ln -s /opt/ yarn-v$YARN_VERSION /opt/yarn \
58
58
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
59
59
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \
60
60
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ RUN set -ex \
49
49
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
50
50
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
51
51
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
52
- && mkdir -p /opt/yarn \
53
- && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \
52
+ && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
53
+ && ln -s /opt/ yarn-v$YARN_VERSION /opt/yarn \
54
54
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
55
55
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \
56
56
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz
Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ RUN set -ex \
53
53
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
54
54
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
55
55
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
56
- && mkdir -p /opt/yarn \
57
- && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \
56
+ && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
57
+ && ln -s /opt/ yarn-v$YARN_VERSION /opt/yarn \
58
58
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
59
59
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \
60
60
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz
You can’t perform that action at this time.
0 commit comments