-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (40 loc) · 1.19 KB
/
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
43
44
45
46
47
48
49
50
FROM debian:bookworm AS taginfo-tools
RUN set -eux ;\
DEBIAN_FRONTEND=noninteractive apt-get update ;\
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
cmake \
libbz2-dev \
libexpat1-dev \
libgd-dev \
libicu-dev \
libosmium2-dev \
libprotozero-dev \
libsqlite3-dev \
make \
zlib1g-dev \
git \
ca-certificates
WORKDIR /code
RUN git clone --recurse-submodules https://github.com/taginfo/taginfo-tools.git && \
cd taginfo-tools && \
mkdir build && \
cd build && \
cmake .. && \
make
FROM ruby:3.3-bookworm
RUN set -eux ;\
DEBIAN_FRONTEND=noninteractive apt-get update ;\
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
# taginfo depedencies
sqlite3 \
libgd3 \
# Filter osm file
osmium-tool
WORKDIR /code
ENV GEM_HOME=/usr/local/lib/ruby/gems/3.3.0
ENV TAGINFO_RUBY=/usr/local/bin/ruby
RUN git clone https://github.com/taginfo/taginfo.git && \
cd taginfo && \
gem install sqlite3
COPY --from=taginfo-tools /code/taginfo-tools/build/src taginfo-tools