fix dockerfile

This commit is contained in:
dalbodeule 2024-06-13 01:46:39 +09:00
parent 907b8e8d2a
commit 94fa1eff61
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

View File

@ -1,17 +1,21 @@
# Builder Stage # Builder Stage
FROM ghcr.io/graalvm/graalvm-ce:latest AS builder FROM ghcr.io/graalvm/graalvm-ce:latest AS builder
# Install necessary tools
RUN gu install native-image
# Set working directory # Set working directory
WORKDIR /app WORKDIR /app
# Install dependencies # Copy Gradle wrapper and build scripts
COPY build.gradle.kts settings.gradle.kts gradlew ./ COPY gradlew ./
COPY gradle ./gradle COPY gradle ./gradle
COPY build.gradle.kts .
COPY settings.gradle.kts .
# Download dependencies
RUN ./gradlew --no-daemon dependencies RUN ./gradlew --no-daemon dependencies
# Build the application
RUN ./gradlew build
# Copy the source code # Copy the source code
COPY src ./src COPY src ./src