-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathDockerfile
48 lines (40 loc) · 1.36 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:14.04
RUN apt-get update && \
apt-get install -y \
binutils \
g++ \
libav-tools \
python \
libpython-dev \
libgdal-dev \
imagemagick \
libmagickcore-dev \
libmagickwand-dev \
curl \
wget && \
apt-get clean
RUN sed -i 's/\(<policy domain="coder" rights=\)"none" \(pattern="PDF" \/>\)/\1"read|write"\2/g' /etc/ImageMagick/policy.xml
RUN python --version
RUN curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" && \
python get-pip.py && \
rm get-pip.py && \
pip --version
RUN gdal-config --version && \
export C_INCLUDE_PATH=/usr/include/gdal && \
export CPLUS_INCLUDE_PATH=/usr/include/gdal && \
pip install gdal==1.10
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
apt-get install -y nodejs && \
node -v && npm -v
ENV DOCKERIZE_VERSION v0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && \
tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && \
rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
ADD /geokey /app
WORKDIR /app
RUN \
pip install --upgrade pip && \
pip install -r requirements.txt && \
pip install -r requirements-dev.txt && \
pip install -e /app
RUN npm install