Install protobuf in Docker

This commit is contained in:
Ilya Fedin 2024-04-09 23:40:32 +04:00 committed by John Preston
parent 11b57ff7d3
commit 90405f3ebc
2 changed files with 6 additions and 5 deletions

View File

@ -90,10 +90,11 @@ RUN git clone -b v21.9 --depth=1 --recursive {{ GIT }}/protocolbuffers/protobuf.
-Dprotobuf_BUILD_TESTS=OFF \
-Dprotobuf_BUILD_PROTOBUF_BINARIES=ON \
-Dprotobuf_BUILD_LIBPROTOC=ON \
-Dprotobuf_WITH_ZLIB_DEFAULT=OFF \
-Dprotobuf_DEBUG_POSTFIX="" \
-Dprotobuf_WITH_ZLIB=OFF \
&& cmake --build build --parallel \
&& rm -rf .git
&& DESTDIR="{{ LibrariesPath }}/protobuf-cache" cmake --install build \
&& cd .. \
&& rm -rf protobuf
FROM builder AS lcms2
RUN git clone -b lcms2.15 --depth=1 {{ GIT }}/mm2/Little-CMS.git \
@ -800,7 +801,7 @@ RUN cmake --build out --config Debug --parallel \
FROM builder-base
COPY --link --from=zlib {{ LibrariesPath }}/zlib-cache /
COPY --link --from=xz {{ LibrariesPath }}/xz-cache /
COPY --link --from=protobuf {{ LibrariesPath }}/protobuf protobuf
COPY --link --from=protobuf {{ LibrariesPath }}/protobuf-cache /
COPY --link --from=lcms2 {{ LibrariesPath }}/lcms2-cache /
COPY --link --from=brotli {{ LibrariesPath }}/brotli-cache /
COPY --link --from=highway {{ LibrariesPath }}/highway-cache /

2
cmake

@ -1 +1 @@
Subproject commit f921cb6aba9ada6099b3f9c8c237986ecda238f5
Subproject commit bf157ab03f3d07c3822dcdd3e3f90a8e4ccb7d66