1
- FROM debian:bullseye -slim as builder
1
+ FROM debian:bookworm -slim as builder
2
2
ARG DOCKER_TAG
3
3
ARG BUILD_CONCURRENCY
4
4
RUN mkdir -p /src && mkdir -p /opt
5
5
6
6
RUN apt-get update && \
7
7
apt-get -y --no-install-recommends install ca-certificates cmake make git gcc g++ libbz2-dev libxml2-dev wget \
8
- libzip-dev libboost1.74 -all-dev lua5.4 liblua5.4-dev pkg-config -o APT::Install-Suggests=0 -o APT::Install-Recommends=0
8
+ libzip-dev libboost1.81 -all-dev lua5.4 liblua5.4-dev pkg-config -o APT::Install-Suggests=0 -o APT::Install-Recommends=0
9
9
10
10
RUN NPROC=${BUILD_CONCURRENCY:-$(nproc)} && \
11
11
ldconfig /usr/local/lib && \
12
- git clone --branch v2021.3 .0 --single-branch https://github.com/oneapi-src/oneTBB.git && \
12
+ git clone --branch v2021.12 .0 --single-branch https://github.com/oneapi-src/oneTBB.git && \
13
13
cd oneTBB && \
14
14
mkdir build && \
15
15
cd build && \
@@ -21,6 +21,7 @@ COPY . /src
21
21
WORKDIR /src
22
22
23
23
RUN NPROC=${BUILD_CONCURRENCY:-$(nproc)} && \
24
+ export CXXFLAGS="-Wno-array-bounds -Wno-uninitialized" && \
24
25
echo "Building OSRM ${DOCKER_TAG}" && \
25
26
git show --format="%H" | head -n1 > /opt/OSRM_GITSHA && \
26
27
echo "Building OSRM gitsha $(cat /opt/OSRM_GITSHA)" && \
@@ -42,15 +43,15 @@ RUN NPROC=${BUILD_CONCURRENCY:-$(nproc)} && \
42
43
43
44
# Multistage build to reduce image size - https://docs.docker.com/engine/userguide/eng-image/multistage-build/#use-multi-stage-builds
44
45
# Only the content below ends up in the image, this helps remove /src from the image (which is large)
45
- FROM debian:bullseye -slim as runstage
46
+ FROM debian:bookworm -slim as runstage
46
47
47
48
COPY --from=builder /usr/local /usr/local
48
49
COPY --from=builder /opt /opt
49
50
50
51
RUN apt-get update && \
51
- apt-get install -y --no-install-recommends libboost-program-options1.74 .0 libboost-regex1.74 .0 \
52
- libboost-date-time1.74 .0 libboost-chrono1.74 .0 libboost-filesystem1.74 .0 \
53
- libboost-iostreams1.74 .0 libboost-system1.74 .0 libboost-thread1.74 .0 \
52
+ apt-get install -y --no-install-recommends libboost-program-options1.81 .0 libboost-regex1.81 .0 \
53
+ libboost-date-time1.81 .0 libboost-chrono1.81 .0 libboost-filesystem1.81 .0 \
54
+ libboost-iostreams1.81 .0 libboost-system1.81 .0 libboost-thread1.81 .0 \
54
55
expat liblua5.4-0 && \
55
56
rm -rf /var/lib/apt/lists/* && \
56
57
# add /usr/local/lib to ldconfig to allow loading libraries from there
0 commit comments