forked from jcefmaven/jcefbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileLinux
38 lines (30 loc) · 891 Bytes
/
DockerfileLinux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM friwidev/jcefdocker:linux-latest AS stage
LABEL jcefbuild=true
#Declare build type argument (Release or Debug)
ARG BUILD_TYPE
#Declare architecture argument (arm64, arm/v6, 386 or amd64)
ARG TARGETARCH
#Declare git args
ARG REPO
ARG REF
WORKDIR /builder
#Copy existing sources, if any
COPY jcef /jcef
#Copy prebuild classes, if any
COPY out/linux32 /prebuild
#Copy additional natives
COPY natives /natives
#Copy cmake patching script
COPY scripts/patch_cmake.py .
COPY patch/CMakeLists.txt.patch .
#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 .
#COPY --from=stage /jcef/target target
#COPY --from=stage /jcef/third_party third_party
#COPY --from=stage /jcef/buildtools buildtools
#COPY --from=stage /jcef/jcef_build jcef_build