Skip to content

Instantly share code, notes, and snippets.

@dooman87
Last active December 28, 2016 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dooman87/9c7d73051b50d46da7b878ead230b048 to your computer and use it in GitHub Desktop.
Save dooman87/9c7d73051b50d46da7b878ead230b048 to your computer and use it in GitHub Desktop.
FROM mdillon/postgis:9.5
WORKDIR /
RUN apt-get update && \
apt-get install -y osm2pgsql git wget && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/dooman87/openstreetmap-carto.git && \
wget https://s3.amazonaws.com/metro-extracts.mapzen.com/melbourne_australia.osm.pbf
#Overriding init script to add hstore extension that osm2pgsql requires
COPY ./initdb-postgis.sh /docker-entrypoint-initdb.d/postgis.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment