11# ###############################################################################
22# PLATFORM #
33# ###############################################################################
4- FROM ubuntu:22.04 as platform
4+ FROM ubuntu:22.04 AS platform
55ARG http_proxy
66ARG https_proxy
77
@@ -64,15 +64,15 @@ ENV PATH=$PATH:/opt/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-linux-gnueabihf/
6464# ###############################################################################
6565# KERNEL-SOURCE #
6666# ###############################################################################
67- FROM platform as kernel-source
67+ FROM platform AS kernel-source
6868WORKDIR /root/
6969RUN wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.8.7.tar.xz
7070RUN tar xf linux-6.8.7.tar.xz
7171
7272# ###############################################################################
7373# KERNEL-ARM32 #
7474# ###############################################################################
75- FROM platform as kernel-arm32
75+ FROM platform AS kernel-arm32
7676COPY --from=kernel-source /root/linux-6.8.7 /root/linux-6.8.7
7777WORKDIR /root/linux-6.8.7
7878
@@ -98,7 +98,7 @@ RUN ARCH=arm \
9898# ###############################################################################
9999# KERNEL-ARM64 #
100100# ###############################################################################
101- FROM platform as kernel-arm64
101+ FROM platform AS kernel-arm64
102102COPY --from=kernel-source /root/linux-6.8.7 /root/linux-6.8.7
103103WORKDIR /root/linux-6.8.7
104104
@@ -118,7 +118,7 @@ RUN ARCH=arm64 \
118118# ###############################################################################
119119# KERNEL-x86 #
120120# ###############################################################################
121- FROM platform as kernel-x86
121+ FROM platform AS kernel-x86
122122COPY --from=kernel-source /root/linux-6.8.7 /root/linux-6.8.7
123123WORKDIR /root/linux-6.8.7
124124
@@ -135,7 +135,7 @@ RUN ARCH=i386 \
135135# ###############################################################################
136136# KERNEL-x64 #
137137# ###############################################################################
138- FROM platform as kernel-x64
138+ FROM platform AS kernel-x64
139139COPY --from=kernel-source /root/linux-6.8.7 /root/linux-6.8.7
140140WORKDIR /root/linux-6.8.7
141141
@@ -151,7 +151,7 @@ RUN make \
151151# ###############################################################################
152152# BUSYBOX SOURCE #
153153# ###############################################################################
154- FROM platform as busybox-source
154+ FROM platform AS busybox-source
155155RUN wget \
156156 -O /tmp/busybox-1.36.1.tar.bz2 \
157157 https://busybox.net/downloads/busybox-1.36.1.tar.bz2
@@ -161,7 +161,7 @@ RUN tar -C /root/ -j -x -v -f /tmp/busybox-1.36.1.tar.bz2
161161# ###############################################################################
162162# BUSYBOX-ARM32 #
163163# ###############################################################################
164- FROM platform as busybox-arm32
164+ FROM platform AS busybox-arm32
165165COPY --from=busybox-source /root/busybox-1.36.1 /root/busybox-1.36.1
166166WORKDIR /root/busybox-1.36.1
167167RUN mkdir build
@@ -182,7 +182,7 @@ RUN make \
182182# ###############################################################################
183183# BUSYBOX-ARM64 #
184184# ###############################################################################
185- FROM platform as busybox-arm64
185+ FROM platform AS busybox-arm64
186186COPY --from=busybox-source /root/busybox-1.36.1 /root/busybox-1.36.1
187187WORKDIR /root/busybox-1.36.1
188188RUN mkdir build
@@ -205,7 +205,7 @@ RUN make \
205205# ###############################################################################
206206# BUSYBOX-x86 #
207207# ###############################################################################
208- FROM platform as busybox-x86
208+ FROM platform AS busybox-x86
209209COPY --from=busybox-source /root/busybox-1.36.1 /root/busybox-1.36.1
210210WORKDIR /root/busybox-1.36.1
211211RUN mkdir build
@@ -227,7 +227,7 @@ RUN make \
227227# ###############################################################################
228228# BUSYBOX-x64 #
229229# ###############################################################################
230- FROM platform as busybox-x64
230+ FROM platform AS busybox-x64
231231COPY --from=busybox-source /root/busybox-1.36.1 /root/busybox-1.36.1
232232WORKDIR /root/busybox-1.36.1
233233RUN mkdir build
@@ -246,7 +246,7 @@ RUN make \
246246# ###############################################################################
247247# TARGET #
248248# ###############################################################################
249- FROM platform as target
249+ FROM platform AS target
250250COPY assets/target/target.c /root/target.c
251251COPY assets/target/module.c /root/module.c
252252RUN mkdir /root/x64
@@ -327,15 +327,15 @@ RUN aarch64-none-linux-gnu-gcc \
327327# ###############################################################################
328328# FRIDA SOURCE #
329329# ###############################################################################
330- FROM platform as frida-source
330+ FROM platform AS frida-source
331331WORKDIR /root/
332- ENV TAG=c0fb9c6
332+ ENV TAG=fd5a2746804336e0a84c97317dc49594990ab67a
333333RUN git clone https://github.com/frida/frida-core.git
334334
335335# ###############################################################################
336336# FRIDA-arm32 #
337337# ###############################################################################
338- FROM platform as frida-arm32
338+ FROM platform AS frida-arm32
339339COPY --from=frida-source /root/frida-core /root/frida-core
340340WORKDIR /root/frida-core
341341RUN CC=arm-none-linux-gnueabihf-gcc \
@@ -533,7 +533,7 @@ RUN cat \
533533# ###############################################################################
534534# FRIDA-arm32-sf #
535535# ###############################################################################
536- FROM platform as frida-arm32-sf
536+ FROM platform AS frida-arm32-sf
537537COPY --from=frida-source /root/frida-core /root/frida-core
538538COPY --from=cpp-arm32 /opt/x-tools/arm-linux-gnueabi /opt/x-tools/arm-linux-gnueabi
539539WORKDIR /root/frida-core
@@ -557,7 +557,7 @@ RUN make
557557# ###############################################################################
558558# FRIDA-arm64 #
559559# ###############################################################################
560- FROM platform as frida-arm64
560+ FROM platform AS frida-arm64
561561COPY --from=frida-source /root/frida-core /root/frida-core
562562WORKDIR /root/frida-core
563563RUN CC=aarch64-none-linux-gnu-gcc \
@@ -572,7 +572,7 @@ RUN make
572572# ###############################################################################
573573# FRIDA-x86 #
574574# ###############################################################################
575- FROM platform as frida-x86
575+ FROM platform AS frida-x86
576576COPY --from=frida-source /root/frida-core /root/frida-core
577577WORKDIR /root/frida-core
578578RUN ./configure --host linux-x86
@@ -581,7 +581,7 @@ RUN make
581581# ###############################################################################
582582# FRIDA-x64 #
583583# ###############################################################################
584- FROM platform as frida-x64
584+ FROM platform AS frida-x64
585585COPY --from=frida-source /root/frida-core /root/frida-core
586586WORKDIR /root/frida-core
587587RUN ./configure --host linux-x86_64
@@ -590,7 +590,7 @@ RUN make
590590# ###############################################################################
591591# INITRD-BASE #
592592# ###############################################################################
593- FROM platform as initrd-base
593+ FROM platform AS initrd-base
594594WORKDIR /root/
595595RUN mkdir /root/initramfs/
596596WORKDIR /root/initramfs/
@@ -728,7 +728,7 @@ RUN find . | cpio -o --format=newc -R root:root > /root/initramfs-x64.img
728728# ###############################################################################
729729# CSHELL #
730730# ###############################################################################
731- FROM platform as cshell
731+ FROM platform AS cshell
732732COPY --from=kernel-arm32 /root/linux-6.8.7/build/arch/arm/boot/zImage /root/zImage-arm32
733733COPY --from=kernel-arm64 /root/linux-6.8.7/build/arch/arm64/boot/Image.gz /root/zImage-arm64
734734COPY --from=kernel-x64 /root/linux-6.8.7/build/arch/x86_64/boot/bzImage /root/bzImage-x64
@@ -754,23 +754,23 @@ WORKDIR /root/
754754# ###############################################################################
755755# CSHELL-ARM32 #
756756# ###############################################################################
757- FROM cshell as cshell-arm32
757+ FROM cshell AS cshell-arm32
758758ENTRYPOINT ["/bin/vm-arm32" ]
759759
760760# ###############################################################################
761761# CSHELL-ARM64 #
762762# ###############################################################################
763- FROM cshell as cshell-arm64
763+ FROM cshell AS cshell-arm64
764764ENTRYPOINT ["/bin/vm-arm64" ]
765765
766766# ###############################################################################
767767# CSHELL-x86 #
768768# ###############################################################################
769- FROM cshell as cshell-x86
769+ FROM cshell AS cshell-x86
770770ENTRYPOINT ["/bin/vm-x86" ]
771771
772772# ###############################################################################
773773# CSHELL-x64 #
774774# ###############################################################################
775- FROM cshell as cshell-x64
775+ FROM cshell AS cshell-x64
776776ENTRYPOINT ["/bin/vm-x64" ]
0 commit comments