Skip to content

Commit

Permalink
Merge modules (#1)
Browse files Browse the repository at this point in the history
* merge postgis2mbtiles package to include in vt code

* updated postgis2geojson package
  • Loading branch information
JinIgarashi authored Feb 18, 2024
1 parent 4e93c2d commit 83bebcb
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 297 deletions.
25 changes: 15 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Start from ubuntu
FROM node:lts-bullseye
FROM node:20 AS tippecanoe-builder

# Update repos and install dependencies
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install \
Expand All @@ -10,17 +9,23 @@ RUN apt-get update \
zlib1g-dev \
git

# Build tippecanoe
RUN mkdir -p /tmp/src
WORKDIR /tmp/src
RUN git clone https://github.com/felt/tippecanoe.git
WORKDIR /tmp/src/tippecanoe
RUN make \
&& make install
WORKDIR tippecanoe
RUN make

FROM node:20-slim

RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install \
libsqlite3-dev

COPY --from=tippecanoe-builder /tippecanoe/tippecanoe* /usr/local/bin/
COPY --from=tippecanoe-builder /tippecanoe/tile-join /usr/local/bin/

# Install postgis2mbtiles-docker
RUN mkdir -p /tmp/src
WORKDIR /tmp/src

# Install postgis2mbtiles-docker
COPY . /tmp/src
RUN npm install

Expand Down
Loading

0 comments on commit 83bebcb

Please sign in to comment.