build-boost/Dockerfile

20 lines
570 B
Docker
Raw Permalink Normal View History

2024-04-08 09:13:16 +01:00
FROM debian:12.5 as builder
2024-04-08 05:36:13 +01:00
MAINTAINER arielherself
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
2024-04-08 09:13:16 +01:00
RUN apt install --no-install-recommends build-essential ca-certificates libssl-dev libzstd-dev liblzma-dev libbz2-dev libz-dev -y
2024-04-08 05:36:13 +01:00
RUN apt clean
2024-04-08 09:13:16 +01:00
RUN mkdir /boost_inst
RUN mkdir /boost_target
ADD ./boost /boost_inst
2024-04-08 05:36:13 +01:00
WORKDIR /boost_inst
2024-04-08 09:13:16 +01:00
RUN ./bootstrap.sh --prefix=/boost_target
2024-04-08 05:36:13 +01:00
RUN ./b2 install -q
WORKDIR /
RUN rm -rf /boost_inst
2024-04-08 09:13:16 +01:00
FROM debian:12.5
COPY --from=builder /boost_target/include/. /usr/local/include/
COPY --from=builder /boost_target/lib/. /usr/local/lib/