forked from Frankkkkk/docker-overpass-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
63 lines (46 loc) · 1.01 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
55
56
57
58
59
60
61
FROM ubuntu:18.04
LABEL MAINTAINER="Frank Villaro-Dixon <docker-overpass-api@vi-di.fr>"
RUN apt-get update #
RUN apt-get install -y apache2 vim
RUN apt-get install -y \
autoconf \
automake1.11 \
expat \
git \
g++ \
libtool \
libexpat1-dev \
make \
zlib1g-dev \
bzip2 \
wget \
liblz4-1 liblz4-dev
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/drolbr/Overpass-API.git
WORKDIR /Overpass-API
#Checkout latest version
RUN git checkout $(git describe --abbrev=0 --tags)
#Configure
WORKDIR /Overpass-API/src
RUN \
autoscan && \
aclocal-1.11 && \
autoheader && \
libtoolize && \
automake-1.11 --add-missing && \
autoconf
#Compile
RUN \
./configure --enable-lz4 CXXFLAGS="-O2" --prefix="`pwd`" && \
make -j $(nproc --all)
COPY vhost_apache.conf /etc/apache2/sites-available
RUN a2enmod ext_filter cgi
RUN a2dissite 000-default.conf
RUN a2ensite vhost_apache.conf
WORKDIR /
COPY *.sh /
ADD www /www
RUN useradd overpass_api
CMD ["/run.sh"]
VOLUME "/overpass_DB"
EXPOSE 80