-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.Dockerfile
53 lines (45 loc) · 1.13 KB
/
script.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
51
52
53
FROM ruby:3.0-bullseye
RUN apt update -y && apt install -y \
build-essential \
bzip2 \
cmake \
gzip \
libboost-dev \
libboost-program-options-dev \
libexpat1-dev \
libgeos-dev \
libosmium2-dev \
libpq-dev \
libproj-dev \
libprotozero-dev \
osmosis \
postgresql-client \
python-is-python3 \
python3-pyosmium \
ruby-dev \
ruby-json \
wget
WORKDIR /srv/
RUN git clone https://github.com/osmcode/osm-postgresql-experiments.git && \
cd osm-postgresql-experiments && \
git checkout 3ddc1ca && \
mkdir build && \
cd build && \
cmake .. && \
make install
WORKDIR /srv/
# Custom patch, wating for https://github.com/osmcode/osmium-tool/issues/282
ADD osmium-tool-merge-osc-deleted.diff .
RUN git clone https://github.com/osmcode/osmium-tool.git && \
cd osmium-tool && \
git checkout v1.13.0 && \
patch -p1 < ../osmium-tool-merge-osc-deleted.diff && \
mkdir build && \
cd build && \
cmake .. && \
make install
WORKDIR /srv/app
ADD Gemfile Gemfile.lock ./
RUN bundle config --global silence_root_warning 1
RUN bundle install
ADD . ./