fix for The binary linked against Boost 1.74 (what libboost-all-dev pulled in the builder), but the runtime has 1.81 installed.
This commit is contained in:
parent
835744ebc6
commit
7ec524ee7c
1 changed files with 3 additions and 22 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/arm64v8/debian:bookworm AS builder
|
||||
FROM docker.io/arm64v8/debian:bookworm
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
clang make cmake git pkg-config ca-certificates \
|
||||
|
|
@ -19,27 +19,8 @@ RUN cd /osrm && mkdir build && cd build && \
|
|||
make -j$(nproc) osrm-extract osrm-partition osrm-customize osrm-routed && \
|
||||
make install
|
||||
|
||||
# ---- runtime ----
|
||||
FROM docker.io/arm64v8/debian:bookworm-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libboost-filesystem1.81.0 \
|
||||
libboost-iostreams1.81.0 \
|
||||
libboost-regex1.81.0 \
|
||||
libboost-date-time1.81.0 \
|
||||
libboost-thread1.81.0 \
|
||||
libboost-program-options1.81.0 \
|
||||
libtbb12 liblua5.4-0 libxml2 libzip4 libbz2-1.0 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=builder /usr/local/bin/osrm-extract \
|
||||
/usr/local/bin/osrm-partition \
|
||||
/usr/local/bin/osrm-customize \
|
||||
/usr/local/bin/osrm-routed \
|
||||
/usr/local/bin/
|
||||
|
||||
# Lua profiles (car.lua, foot.lua, bicycle.lua, etc.)
|
||||
COPY --from=builder /osrm/profiles/ /opt/
|
||||
# Lua profiles land at /opt/ as expected by the scripts
|
||||
RUN cp -r /osrm/profiles/* /opt/
|
||||
|
||||
WORKDIR /data
|
||||
EXPOSE 5000
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue