-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use multi-stage build to decrease image size - User osmctools form from mjaschen, for the patch of new state.txt format on OSM Diff server ref: https://www.marcusjaschen.de/blog/2021/osmupdate-error-timestamp/
- Loading branch information
Hsieh Chin Fan
committed
Nov 6, 2021
1 parent
81d3e5e
commit a3cd0b4
Showing
2 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
FROM debian:buster-slim | ||
FROM debian:buster-slim AS base | ||
LABEL Description="Tilemaker" Version="a818597" | ||
|
||
# install dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates curl unzip osmctools jq git | ||
ca-certificates curl unzip jq git wget | ||
|
||
COPY . / | ||
WORKDIR / | ||
|
||
FROM base AS build | ||
|
||
RUN apt-get install -y --no-install-recommends \ | ||
dh-autoreconf zlib1g-dev | ||
|
||
# This zip file comes from latest Github Action artifacts: | ||
# https://github.com/systemed/tilemaker/actions/runs/107305749 | ||
# Build from https://github.com/typebrook/tilemaker/tree/a818597 (2021.10.27) | ||
RUN unzip /tilemaker-ubuntu-18.04.zip && \ | ||
chmod +x /build/tilemaker && \ | ||
mv /build/tilemaker /usr/bin/tilemaker && \ | ||
jq '.settings.compress="none"' /resources/config-openmaptiles.json >/tmp/bak && \ | ||
mv /tmp/bak /resources/config-openmaptiles.json | ||
install /build/tilemaker /usr/local/bin | ||
|
||
RUN git clone https://github.com/ramunasd/osmctools && \ | ||
cd osmctools && \ | ||
autoreconf --install && ./configure && make install | ||
|
||
FROM base | ||
|
||
COPY --from=build /usr/local/bin ./usr/local/bin | ||
COPY --from=build /usr/bin ./usr/bin | ||
|
||
ENTRYPOINT ["tilemaker"] |
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