FROM friwidev/jcefdocker:linux-latest AS stage #Specify a type to build: Debug or Release ENV BUILD_TYPE Release #Declare architecture argument ARG TARGETARCH WORKDIR /builder #Copy existing sources, if any COPY jcef /jcef #Copy and launch run script COPY scripts/run_linux.sh . RUN chmod +x run_linux.sh RUN ./run_linux.sh #Export built files FROM scratch AS export-stage COPY --from=stage /jcef/binary_distrib.tar.gz .