File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ WORKDIR $CONTAINER_SOURCE/
4646COPY $EXTERNAL_SOURCE_NESTED/.yarn ./.yarn
4747COPY $EXTERNAL_SOURCE_NESTED/.yarnrc.yml ./
4848
49- # Add execute permissions to yarn
50- RUN chmod +x "$YARN"
49+ # Add execute permissions to yarn; add yarn to path via symlink
50+ RUN chmod +x "$YARN" && ln -s "$YARN" /usr/local/bin/yarn
5151
5252# Stage 2 - Install dependencies
5353COPY $EXTERNAL_SOURCE_NESTED/yarn.lock ./
@@ -215,10 +215,7 @@ RUN \
215215 # debug
216216 # ls -l /usr/; \
217217 # set up node dir with common.gypi and unsafe-perms=true
218- ln -s /usr/include/node/common.gypi /usr/common.gypi; "$YARN" config set nodedir /usr; "$YARN" config set unsafe-perm true; \
219- \
220- # add yarn to path via symlink
221- ln -s "$CONTAINER_SOURCE" /"$YARN" /usr/local/bin/yarn
218+ ln -s /usr/include/node/common.gypi /usr/common.gypi; "$YARN" config set nodedir /usr; "$YARN" config set unsafe-perm true
222219
223220# Downstream only - debug
224221# RUN echo $PATH; ls -la /usr/local/bin/yarn; whereis yarn;which yarn; yarn --version; \
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ WORKDIR $CONTAINER_SOURCE/
4646COPY $EXTERNAL_SOURCE_NESTED/.yarn ./.yarn
4747COPY $EXTERNAL_SOURCE_NESTED/.yarnrc.yml ./
4848
49- # Add execute permissions to yarn
50- RUN chmod +x "$YARN"
49+ # Add execute permissions to yarn; add yarn to path via symlink
50+ RUN chmod +x "$YARN" && ln -s "$YARN" /usr/local/bin/yarn
5151
5252# Stage 2 - Install dependencies
5353FROM skeleton AS deps
You can’t perform that action at this time.
0 commit comments