Skip to content

Commit

Permalink
Didn't look like the symbolic links got created under /usr/bin so try…
Browse files Browse the repository at this point in the history
…ing with sudo.
  • Loading branch information
jacekzbigniewdudek committed Oct 3, 2024
1 parent e3946a2 commit f86b21c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions docker-bits/6_remote-desktop.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,13 @@ RUN curl -O https://nodejs.org/dist/$NODE_VERSION/$NODE_VERSION_ARCH.tar.xz
RUN bsdtar -xf $NODE_VERSION_ARCH.tar.xz
WORKDIR $NODE_VERSION_ARCH

RUN ln -sf bin/node /usr/bin/node \
&& ln -sf bin/npm /usr/bin/npm \
&& ln -sf bin/npx /usr/bin/npx
RUN ls .

RUN sudo ln -sf bin/node /usr/bin/node \
&& sudo ln -sf bin/npm /usr/bin/npm \
&& sudo ln -sf bin/npx /usr/bin/npx

RUN which node && which npm && which npx

RUN npm install @vscode/vsce

Expand Down
10 changes: 7 additions & 3 deletions output/remote-desktop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,13 @@ RUN curl -O https://nodejs.org/dist/$NODE_VERSION/$NODE_VERSION_ARCH.tar.xz
RUN bsdtar -xf $NODE_VERSION_ARCH.tar.xz
WORKDIR $NODE_VERSION_ARCH

RUN ln -sf bin/node /usr/bin/node \
&& ln -sf bin/npm /usr/bin/npm \
&& ln -sf bin/npx /usr/bin/npx
RUN ls .

RUN sudo ln -sf bin/node /usr/bin/node \
&& sudo ln -sf bin/npm /usr/bin/npm \
&& sudo ln -sf bin/npx /usr/bin/npx

RUN which node && which npm && which npx

RUN npm install @vscode/vsce

Expand Down

0 comments on commit f86b21c

Please sign in to comment.