Initial commit
This commit is contained in:
64
Dockerfile
Normal file
64
Dockerfile
Normal file
@@ -0,0 +1,64 @@
|
||||
FROM ghcr.io/valhalla/valhalla:latest
|
||||
|
||||
COPY ./bindings/valhalla_go.* .
|
||||
|
||||
RUN cp -r /usr/local/include/valhalla/third_party/* /usr/local/include/
|
||||
|
||||
RUN export DEBIAN_FRONTEND=noninteractive && apt update && apt install --yes --quiet \
|
||||
autoconf \
|
||||
automake \
|
||||
ccache \
|
||||
clang \
|
||||
clang-tidy \
|
||||
coreutils \
|
||||
curl \
|
||||
cmake \
|
||||
g++ \
|
||||
gcc \
|
||||
git \
|
||||
jq \
|
||||
lcov \
|
||||
libboost-all-dev \
|
||||
libcurl4-openssl-dev \
|
||||
libczmq-dev \
|
||||
libgdal-dev \
|
||||
libgeos++-dev \
|
||||
libgeos-dev \
|
||||
libluajit-5.1-dev \
|
||||
liblz4-dev \
|
||||
libprotobuf-dev \
|
||||
libspatialite-dev \
|
||||
libsqlite3-dev \
|
||||
libsqlite3-mod-spatialite \
|
||||
libtool \
|
||||
libzmq3-dev \
|
||||
lld \
|
||||
locales \
|
||||
luajit \
|
||||
make \
|
||||
osmium-tool \
|
||||
parallel \
|
||||
pkgconf \
|
||||
protobuf-compiler \
|
||||
python3-all-dev \
|
||||
python3-shapely \
|
||||
python3-requests \
|
||||
python3-pip \
|
||||
spatialite-bin \
|
||||
unzip \
|
||||
zlib1g-dev
|
||||
|
||||
RUN g++ \
|
||||
valhalla_go.cpp \
|
||||
-fPIC \
|
||||
-shared \
|
||||
-o libvalhalla-go.so \
|
||||
-Wl,-Bstatic \
|
||||
-lvalhalla \
|
||||
-Wl,-Bdynamic \
|
||||
-lprotobuf-lite \
|
||||
-lz \
|
||||
-lpthread
|
||||
|
||||
RUN cp libvalhalla-go.so /usr/local/lib/
|
||||
|
||||
Reference in New Issue
Block a user