Skip to content

Commit 20dcfab

Browse files
node and npm alternatives Dockerfile
1 parent d9a7a8d commit 20dcfab

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ RUN dnf update \
55
&& dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo \
66
&& dnf install -y wget which rsync nodejs20 jq awscli gh \
77
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 1 \
8-
&& update-alternatives --list
9-
10-
RUN which node || echo "no node"
11-
RUN which node20 || echo "no node20"
12-
RUN which nodejs20 || echo "no nodejs20"
13-
14-
# RUN npm install --global aws-cdk \
8+
&& update-alternatives --install /usr/bin/node node /usr/bin/node-20 1 \
9+
&& update-alternatives --install /usr/bin/npm npm /usr/bin/npm-20 1 \
10+
&& update-alternatives --list \
11+
&& npm install --global aws-cdk

0 commit comments

Comments
 (0)