forked from developmentseed/osm-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (47 loc) · 1.12 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
51
52
53
54
FROM ruby:2.7
ENV workdir /apps
# Install Taginfo site
RUN apt-get update && apt-get -y install \
curl \
sqlite3 \
sqlite3-pcre \
ruby-passenger \
libapache2-mod-passenger \
git
# Commit ae5a950f7aa4c0de4e706839619a1dc05fc4450a, at 2021-10-18
RUN git clone https://github.com/taginfo/taginfo.git $workdir/taginfo
WORKDIR $workdir/taginfo
RUN echo "gem 'thin' " >>Gemfile
RUN gem install bundler
RUN bundle install
# Install Taginfo tools
RUN apt-get -y install \
cmake \
libbz2-dev \
libexpat1-dev \
libgd-dev \
libicu-dev \
libosmium2-dev \
libprotozero-dev \
libsqlite3-dev \
make \
zlib1g-dev \
jq \
ca-certificates
# Other useful packages
RUN apt-get install -y \
git \
osmium-tool \
pyosmium \
rsync \
tmux \
zsh
RUN git clone https://github.com/taginfo/taginfo-tools.git $workdir/taginfo-tools
WORKDIR $workdir/taginfo-tools
RUN git submodule update --init
RUN mkdir build && cd build && cmake .. && make
RUN apt-get install -y nano vim
COPY overwrite_config.py $workdir/
COPY start.sh $workdir/
WORKDIR $workdir/
CMD $workdir/start.sh