Dockerfile 777 B

1234567891011121314151617181920212223242526
  1. # 0. from base paddlers image
  2. FROM paddlers:latest
  3. # 1. install mysql and nodejs
  4. RUN apt-get update \
  5. && apt-get install -y mysql-server mysql-client libmysqlclient-dev \
  6. git curl \
  7. && curl -sL https://deb.nodesource.com/setup_16.x | bash - \
  8. && apt-get install -y nodejs
  9. # 2. clone geoview
  10. WORKDIR /opt
  11. RUN git clone --recursive -b release/0.1 https://github.com/PaddleCV-SIG/GeoView.git \
  12. ENV PYTHONPATH /opt/GeoView/PaddleRS
  13. # 3. install backend requirements
  14. WORKDIR /opt/GeoView/backend
  15. RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple \
  16. && mv .flaskenv_template .flaskenv
  17. # 4. install frontend requirements
  18. WORKDIR /opt/GeoView/frontend
  19. RUN npm install
  20. # 5. set working directory
  21. WORKDIR /opt/GeoView