forked from dookda/tart_acci_predict
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (26 loc) · 964 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:latest
WORKDIR /mnt/
RUN apt update && DEBIAN_FRONTEND="noninteractive" TZ="Asia/Bangkok" apt-get install -y tzdata
RUN apt update && apt install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt update && apt install -y python3 python3-pip
RUN pip install numpy
RUN pip install Flask
RUN apt update && add-apt-repository ppa:ubuntugis/ppa
RUN apt update && apt install -y otb-bin otb-bin-qt
RUN apt update && apt install -y libpq-dev gdal-bin libgdal-dev
RUN apt update && apt install python3-gdal
RUN export CPLUS_INCLUDE_PATH=/usr/include/gdal
RUN export C_INCLUDE_PATH=/usr/include/gdal
RUN pip install GDAL
RUN pip install -U flask-cors
RUN pip install joblib
RUN pip install pandas
RUN pip install xgboost
RUN apt update && apt -y install nodejs
RUN apt update && apt -y install npm
RUN npm i -g nodemon
RUN npm i -g pm2
# install postgres
RUN apt -y install postgresql postgresql-contrib
RUN apt -y install postgis