From 9478441c58fb91244fa26c8f210131c83f47d152 Mon Sep 17 00:00:00 2001 From: Asaf Gabai <77976014+asafgabai@users.noreply.github.com> Date: Tue, 13 Jul 2021 11:31:48 +0300 Subject: [PATCH] Upgraded npm and added Yarn (#11) --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 404bb67..dd6dfd9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN apt update RUN apt install -yq zip unzip curl git uuid jq gettext software-properties-common python3-pip python3-venv nodejs npm # Configure Python -RUN ln -s /usr/bin/pip3 /usr/bin/pip +RUN ln -sf /usr/bin/pip3 /usr/bin/pip RUN ln -s /usr/bin/python3 /usr/bin/python # Install Go @@ -46,6 +46,13 @@ RUN curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontaine RUN apt update RUN apt -yq install podman +# Upgrade npm +RUN npm config set prefix /usr +RUN npm install -g --force npm + +# Install Yarn +RUN npm install -g yarn + # Clean up RUN apt autoremove RUN apt clean