docker run --rm -v `pwd`:/data \
osmx expand /data/pennsylvania-latest.osm.pbf /data/pennsylvania.osmx
Last active
March 24, 2020 01:51
-
-
Save CloudNiner/4943e53f954edfcb5404a7474658bb26 to your computer and use it in GitHub Desktop.
OSMExpress 0.0.4 Ubuntu 18.04 Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment