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
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user