Skip to content

Instantly share code, notes, and snippets.

@CloudNiner
Last active March 24, 2020 01:51
Show Gist options
  • Save CloudNiner/4943e53f954edfcb5404a7474658bb26 to your computer and use it in GitHub Desktop.
Save CloudNiner/4943e53f954edfcb5404a7474658bb26 to your computer and use it in GitHub Desktop.
OSMExpress 0.0.4 Ubuntu 18.04 Dockerfile
FROM ubuntu:18.04 AS builder
RUN apt-get update && apt-get install -y \
cmake \
clang \
libbz2-dev \
libz-dev \
libexpat-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/osmexpress
COPY . /usr/src/osmexpress
RUN cmake -DCMAKE_BUILD_TYPE=Release .
RUN make
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y \
libexpat1 \
libssl1.1 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/src/osmexpress/osmx /usr/local/bin/osmx
ENTRYPOINT [ "/usr/local/bin/osmx" ]

Example

docker run --rm -v `pwd`:/data \
  osmx expand /data/pennsylvania-latest.osm.pbf /data/pennsylvania.osmx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment