From b16b7d4f3948f32bdc71a11a07cb716eabc4d5b9 Mon Sep 17 00:00:00 2001 From: Wille Marcel Date: Thu, 12 Oct 2023 19:12:12 -0300 Subject: [PATCH] Install yarnpkg and use it instead of npm --- images/osmcha-web/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/osmcha-web/Dockerfile b/images/osmcha-web/Dockerfile index 6fb60bd4..7e5943b3 100644 --- a/images/osmcha-web/Dockerfile +++ b/images/osmcha-web/Dockerfile @@ -5,7 +5,7 @@ RUN apt-get update -y -qq && \ apt-get install -y curl python3 \ python3-dev python3-pip git libgeos-dev \ libcurl4-gnutls-dev librtmp-dev python3-gdal \ - libyaml-dev locales && \ + libyaml-dev locales yarnpkg && \ locale-gen en_US.UTF-8 && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* @@ -33,7 +33,7 @@ RUN pip3 install django-extensions # Clone and build the frontend RUN git clone https://github.com/mapbox/osmcha-frontend.git WORKDIR /app/osmcha-frontend -RUN npm install +RUN yarn RUN REACT_APP_VERSION=ohm REACT_APP_STACK=PRODUCTION PUBLIC_URL=$OSMCHA_URL npx react-scripts build RUN cp -R ./build/*.html ../osmchadjango/frontend/templates/frontend/ RUN cp ./build/* ../osmchadjango/static/