mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-08 05:11:12 +00:00
fix dockerfile
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user