Skip to content

Commit

Permalink
Fix install command
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel authored Sep 12, 2023
1 parent fc33d81 commit d005536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/osmcha-web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit d005536

Please sign in to comment.