Dockerfile
changeset 181 c3967f05d44c
parent 180 7b82c8cbd0a0
child 182 cc6c6e7fd39a
equal deleted inserted replaced
180:7b82c8cbd0a0 181:c3967f05d44c
     1 FROM debian:stretch
       
     2 
       
     3 RUN apt-get update && apt-get install -y \
       
     4     build-essential \
       
     5     libc6-dev libpng-dev \
       
     6     python python-dev python-pip virtualenv
       
     7 
       
     8 ADD . /src/pngtile
       
     9 
       
    10 WORKDIR /src/pngtile
       
    11 
       
    12 RUN make
       
    13 
       
    14 RUN virtualenv /opt/pngtile
       
    15 
       
    16 RUN make -B install PREFIX=/opt/pngtile
       
    17 RUN /opt/pngtile/bin/pip install -r requirements.txt
       
    18 RUN /opt/pngtile/bin/python setup.py build_ext -I /opt/pngtile/include -L /opt/pngtile/lib -R /opt/pngtile/lib
       
    19 RUN /opt/pngtile/bin/python setup.py install
       
    20 
       
    21 WORKDIR /opt/pngtile