-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (23 loc) · 799 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
28
29
30
31
FROM python:3.8
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential make git g++ gcc gfortran \
sqlite3 libgdal-dev python3-gdal gdal-bin \
libspatialindex-dev python-rtree \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/OSGeo/proj.4.git \
&& cd proj.4 \
&& ./autogen.sh \
&& ./configure --prefix=/usr \
--mandir=/usr/share/man \
&& make -j 4 \
&& make install
RUN pip install --upgrade pip && \
pip install Cython numpy scipy pandas convertdate lunarcalendar h5py && \
rm -fr /root/.cache
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENTRYPOINT ["python", "./forecast.py"]