-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.arm.ci
30 lines (25 loc) · 1005 Bytes
/
Dockerfile.arm.ci
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
# Dockerfile.arm.ci
#
# This Dockerfile is only used by the CI workflows to produce an arm64/aarch64
# linux native-image. As Github currently has no native support for arm64 and
# GraalVM native-image can't cross-compile, the work-around is to combinde qemu
# and Docker Buildx to emulate a linux/arm64 environment.
###############################################################################
FROM ghcr.io/graalvm/native-image:22 AS builder
COPY . .
RUN \
cd native-image-configs && \
native-image \
--allow-incomplete-classpath \
--no-fallback \
--static \
--libc=glibc \
--class-path './config-classpath/:../gradle-install/lib/*' \
com.github.lbarnkow.minchir.App \
minchir-linux-arm64
RUN \
cd native-image-configs && \
./minchir-linux-arm64 --help
###############################################################################
FROM scratch AS release
COPY --from=builder /app/native-image-configs/minchir-linux-arm64 /