File: Dockerfile

package info (click to toggle)
python-stetl 1.0.9%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 89,428 kB
  • ctags: 720
  • sloc: python: 3,527; xml: 699; sql: 428; makefile: 153; sh: 45
file content (44 lines) | stat: -rw-r--r-- 1,338 bytes parent folder | download | duplicates (2)
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
FROM ubuntu:14.04
# FROM python:2.7  would be preferred but trickier
# TODO: use a more lightweight Linux distro than Ubuntu

MAINTAINER just@justobjects.nl

# Configure timezone and locale
ARG IMAGE_TIMEZONE="Europe/Amsterdam"
# set time right adn configure timezone and locale
RUN echo "$IMAGE_TIMEZONE" > /etc/timezone && \
	dpkg-reconfigure -f noninteractive tzdata

# Optional: Use local cached debs from host (saves your bandwidth!)
# Change ip below to that of your apt-cacher-ng host
# Or comment this line out if you do not with to use caching
# ADD 71-apt-cacher-ng /etc/apt/apt.conf.d/71-apt-cacher-ng

RUN export DEBIAN_FRONTEND=noninteractive TERM=linux && \
  echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections

RUN apt-get update && \
	apt-get install -y software-properties-common

# Use UbuntuGIS for latest GDAL, Proj.4, GEOS etc
RUN apt-add-repository ppa:ubuntugis/ubuntugis-unstable
RUN apt-get update && \
	apt-get install -y git \
    libproj0 \
    libgeos-dev \
    python-lxml \
    python-gdal \
    libgdal-dev \
    build-essential \
    python-dev \
    python-setuptools

# Get latest Stetl from git
RUN git clone https://github.com/justb4/stetl /opt/stetl

# Use Stetl installer
RUN cd /opt/stetl; python setup.py install

# Allow docker run
ENTRYPOINT ["/usr/local/bin/stetl"]