-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also: - fix .dockerignore using the old groovy gradle scripts - replace pattern matching switch with IFs - make the "cancel" buttons delete their respective message - Dockerfile: remove "--link" argument from the COPY statements - Dockerfile: switch WORKDIR and COPY commands - CommandButtonUtils: remove "getDeleteButton"
- Loading branch information
Showing
7 changed files
with
26 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
* | ||
|
||
!build.gradle | ||
!settings.gradle | ||
!build.gradle.kts | ||
!settings.gradle.kts | ||
!src/ | ||
!gradlew | ||
!gradle/ | ||
!gradle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
FROM gradle:7.5.1-jdk17-alpine AS build | ||
|
||
COPY --chown=gradle:gradle . /bot | ||
FROM gradle:7.6-jdk19-alpine AS build | ||
|
||
WORKDIR /bot | ||
|
||
COPY --chown=gradle:gradle . . | ||
|
||
RUN gradle build downloadDependencies --no-daemon | ||
|
||
FROM eclipse-temurin:17-jre-alpine AS run | ||
FROM eclipse-temurin:19-jre-alpine AS run | ||
|
||
WORKDIR /blackonionbot | ||
|
||
# Copy the libraries to the container | ||
COPY --link --from=build /bot/libraries/* ./ | ||
COPY --from=build /bot/libraries/* ./ | ||
|
||
# Copy the built application to the container | ||
COPY --link --from=build /bot/build/libs/BlackOnion-Bot.jar ./bot.jar | ||
COPY --from=build /bot/build/libs/BlackOnion-Bot.jar ./bot.jar | ||
|
||
ENTRYPOINT [ "java", "-cp", "*", "com.github.black0nion.blackonionbot.Main" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters