Created
December 6, 2021 07:00
-
-
Save stesie/79d5545d83944a5eac2067fc9d534438 to your computer and use it in GitHub Desktop.
Dockerfile behind stesie/libv8-xxx containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:focal AS builder | |
RUN apt-get update && apt-get -y install build-essential curl git python libglib2.0-dev | |
RUN git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git /depot_tools | |
# export PATH=`pwd`/depot_tools:"$PATH" | |
ARG V8VER_FULL | |
RUN test "$V8VER_FULL" != "" | |
WORKDIR /tmp | |
RUN /depot_tools/fetch v8 | |
RUN cd v8 && git checkout $V8VER_FULL && /depot_tools/gclient sync | |
RUN cd v8 && tools/dev/v8gen.py -vv x64.release -- is_component_build=true use_custom_libcxx=false && \ | |
/depot_tools/ninja -C out.gn/x64.release/ | |
FROM ubuntu:focal | |
ARG V8VER | |
ENV V8VER ${V8VER} | |
COPY --from=builder /tmp/v8/out.gn/x64.release/lib*.so /opt/libv8-${V8VER}/lib/ | |
COPY --from=builder /tmp/v8/out.gn/x64.release/*_blob.bin /opt/libv8-${V8VER}/lib/ | |
COPY --from=builder /tmp/v8/out.gn/x64.release/icudtl.dat /opt/libv8-${V8VER}/lib/ | |
COPY --from=builder /tmp/v8/include/ /opt/libv8-${V8VER}/include/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment