Skip to content

Commit

Permalink
Fixed build and added docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
Minemobs committed Jun 6, 2024
1 parent 99b6582 commit 2f8fc29
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
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"]
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ kotlin {
}

tasks.withType<ShadowJar> {
minimize()
//minimize()
}

tasks.withType<Jar> {
manifest {
// Change this to your main class
attributes["Main-Class"] = mainClassPath
}
}
}
6 changes: 6 additions & 0 deletions docker-compose.yml
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"

0 comments on commit 2f8fc29

Please sign in to comment.