-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed build and added docker support
- Loading branch information
Showing
3 changed files
with
24 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Building minestom | ||
FROM gradle:8.8.0-jdk21 as gradle | ||
RUN mkdir /gradlebuild | ||
WORKDIR /gradlebuild | ||
COPY . . | ||
RUN gradle shadowjar --no-daemon | ||
|
||
FROM eclipse-temurin:21-alpine | ||
RUN mkdir /app | ||
WORKDIR /app | ||
COPY --from=gradle /gradlebuild/build/libs/bomberman-all.jar . | ||
|
||
LABEL authors="minemobs" | ||
LABEL version="0.1" | ||
EXPOSE 25565 | ||
ENTRYPOINT ["java", "-jar", "/app/bomberman-all.jar"] |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
services: | ||
bomberman: | ||
image: sunderia/bomberman:0.1.0 | ||
restart: unless-stopped | ||
ports: | ||
- "25566:25565" |