-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (32 loc) · 823 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Start from ubuntu
FROM node:20 AS tippecanoe-builder
ENV TIPPECANOE_VERSION=2.24.0
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install \
build-essential \
libsqlite3-dev \
zlib1g-dev \
git
RUN git clone https://github.com/felt/tippecanoe.git -b $TIPPECANOE_VERSION
WORKDIR tippecanoe
RUN make
FROM node:20-slim
ARG db_user
ARG db_password
ARG db_host
ARG db_port
ARG db_name
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/
WORKDIR /tmp/src
# Install postgis2mbtiles-docker
COPY . /tmp/src
RUN npm install -g npm@latest
RUN npm install
RUN chmod a+x /tmp/src/entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]