🔨 Refactored osm2pgsql install
This commit is contained in:
parent
c8a79a19e4
commit
8bac516eb1
24
Dockerfile
24
Dockerfile
@ -91,18 +91,18 @@ RUN adduser --disabled-password --gecos "" renderer
|
|||||||
USER renderer
|
USER renderer
|
||||||
|
|
||||||
# Install latest osm2pgsql
|
# Install latest osm2pgsql
|
||||||
RUN mkdir /home/renderer/src
|
RUN mkdir -p /home/renderer/src \
|
||||||
WORKDIR /home/renderer/src
|
&& cd /home/renderer/src \
|
||||||
RUN git clone https://github.com/openstreetmap/osm2pgsql.git
|
&& git clone https://github.com/openstreetmap/osm2pgsql.git \
|
||||||
WORKDIR /home/renderer/src/osm2pgsql
|
&& cd /home/renderer/src/osm2pgsql \
|
||||||
RUN mkdir build
|
&& mkdir build \
|
||||||
WORKDIR /home/renderer/src/osm2pgsql/build
|
&& cd build \
|
||||||
RUN cmake .. \
|
&& cmake .. \
|
||||||
&& make -j $(nproc)
|
&& make -j $(nproc) \
|
||||||
USER root
|
&& make install \
|
||||||
RUN make install
|
&& mkdir /nodes \
|
||||||
RUN mkdir /nodes \
|
&& chown renderer:renderer /nodes \
|
||||||
&& chown renderer:renderer /nodes
|
&& rm -rf /home/renderer/src
|
||||||
USER renderer
|
USER renderer
|
||||||
|
|
||||||
# Install and test Mapnik
|
# Install and test Mapnik
|
||||||
|
Loading…
Reference in New Issue
Block a user