From aaf1fc1d9b2ec9041df28e9c5ceaffe6649a5176 Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 22 May 2024 21:52:23 +0530 Subject: [PATCH] Install yarn + tools --- Dockerfile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index b443d30..6cafa97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,16 @@ RUN apt-get update RUN apt-get install -y --no-install-recommends libmagic-dev libglib2.0-dev libpango-1.0-0 libpangoft2-1.0-0 +RUN apt-get update && \ + apt-get install -y curl gnupg && \ + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ + echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ + apt-get update && \ + apt-get install -y yarn && \ + apt-get install -y --no-install-recommends build-essential gcc && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + ENV VIRTUAL_ENV=/venv # Use production configuration. @@ -31,13 +41,6 @@ ENV \ PIP_DISABLE_PIP_VERSION_CHECK=on \ PIP_DEFAULT_TIMEOUT=100 - -RUN apt-get install -y --no-install-recommends build-essential gcc - -# Install python build tools. -RUN pip install --upgrade pip setuptools==58 -RUN pip install wheel - RUN python3 -m venv $VIRTUAL_ENV RUN mkdir -p /build