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
FROM ghcr.io/graalvm/graalvm-ce:latest AS builder
# Install necessary tools
RUN gu install native-image
# Set working directory
WORKDIR /app
# Install dependencies
COPY build.gradle.kts settings.gradle.kts gradlew ./
# Copy Gradle wrapper and build scripts
COPY gradlew ./
COPY gradle ./gradle
COPY build.gradle.kts .
COPY settings.gradle.kts .
# Download dependencies
RUN ./gradlew --no-daemon dependencies
# Build the application
RUN ./gradlew build
# Copy the source code
COPY src ./src