mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Added dockerfile
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
# Don't copy Dockerfile or git items
|
||||||
|
.gitignore
|
||||||
|
.git
|
||||||
|
Dockerfile
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
# Start from ubuntu
|
||||||
|
FROM ubuntu:17.04
|
||||||
|
|
||||||
|
# Update repos and install dependencies
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get -y upgrade \
|
||||||
|
&& apt-get -y install build-essential libsqlite3-dev zlib1g-dev
|
||||||
|
|
||||||
|
# Create a directory and copy in all files
|
||||||
|
RUN mkdir -p /tmp/tippecanoe-src
|
||||||
|
WORKDIR /tmp/tippecanoe-src
|
||||||
|
COPY . /tmp/tippecanoe-src
|
||||||
|
|
||||||
|
# Build tippecanoe
|
||||||
|
RUN make \
|
||||||
|
&& make install
|
||||||
|
|
||||||
|
# Remove the temp directory and unneeded packages
|
||||||
|
WORKDIR /
|
||||||
|
RUN rm -rf /tmp/tippecanoe-src \
|
||||||
|
&& apt-get -y remove --purge build-essential && apt-get -y autoremove
|
||||||
|
|
||||||
|
# Run the default command to show usage
|
||||||
|
CMD tippecanoe --help
|
||||||
Reference in New Issue
Block a user