mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
fix dockerfile
This commit is contained in:
parent
907b8e8d2a
commit
94fa1eff61
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user