Install yarn + tools

This commit is contained in:
PCoder 2024-05-22 21:52:23 +05:30
parent 1af8fe3767
commit aaf1fc1d9b

View file

@ -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 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 ENV VIRTUAL_ENV=/venv
# Use production configuration. # Use production configuration.
@ -31,13 +41,6 @@ ENV \
PIP_DISABLE_PIP_VERSION_CHECK=on \ PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 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 python3 -m venv $VIRTUAL_ENV
RUN mkdir -p /build RUN mkdir -p /build