mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 21:01:14 +00:00
fix build.yml (x20)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Stage 1: Build the executable with GraalVM
|
# Stage 1: Build the executable with GraalVM
|
||||||
FROM ghcr.io/graalvm/native-image-community:21-muslib-ol8 as build
|
FROM gradle:jdk-21-and-22-graal as build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -8,10 +8,8 @@ COPY build.gradle.kts settings.gradle.kts gradlew gradle.properties ./
|
|||||||
COPY gradle gradle
|
COPY gradle gradle
|
||||||
COPY src src
|
COPY src src
|
||||||
|
|
||||||
RUN microdnf install findutils
|
|
||||||
|
|
||||||
# Build the project
|
# Build the project
|
||||||
RUN ./gradlew nativeCompile
|
RUN gradle nativeCompile
|
||||||
|
|
||||||
# Stage 2: Create a minimal Docker image and add the binary
|
# Stage 2: Create a minimal Docker image and add the binary
|
||||||
FROM alpine:3.13
|
FROM alpine:3.13
|
||||||
|
Reference in New Issue
Block a user