From d005536b960ce4b1d9bcf89045e0037181762f55 Mon Sep 17 00:00:00 2001 From: Wille Marcel Date: Tue, 12 Sep 2023 21:35:59 +0200 Subject: [PATCH] Fix install command --- 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 ff581fb9..a16e521c 100644 --- a/images/osmcha-web/Dockerfile +++ b/images/osmcha-web/Dockerfile @@ -33,9 +33,9 @@ RUN pip3 install django-extensions ADD . /app RUN git clone https://github.com/mapbox/osmcha-frontend.git WORKDIR ./osmcha-frontend/ -RUN yarn install +RUN yarn RUN FRONTEND_VERSION=$(node -e "console.log(require('./package.json').version)") -RUN REACT_APP_VERSION=$FRONTEND_VERSION REACT_APP_STACK=PRODUCTION PUBLIC_URL=$OSMCHA_URL react-scripts build +RUN REACT_APP_VERSION=$FRONTEND_VERSION REACT_APP_STACK=PRODUCTION PUBLIC_URL=$OSMCHA_URL npx react-scripts build WORKDIR /app RUN cp osmcha-frontend/build/* osmchadjango/static RUN mv osmchadjango/static/*.html osmchadjango/templates/