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:
Shautvast 2026-03-30 14:48:07 +02:00
parent 835744ebc6
commit 7ec524ee7c

View file

@ -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 \ RUN apt-get update && apt-get install -y --no-install-recommends \
clang make cmake git pkg-config ca-certificates \ 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 -j$(nproc) osrm-extract osrm-partition osrm-customize osrm-routed && \
make install make install
# ---- runtime ---- # Lua profiles land at /opt/ as expected by the scripts
FROM docker.io/arm64v8/debian:bookworm-slim RUN cp -r /osrm/profiles/* /opt/
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/
WORKDIR /data WORKDIR /data
EXPOSE 5000 EXPOSE 5000