-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile and publishing to DockerHub
- Loading branch information
Showing
3 changed files
with
47 additions
and
4 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
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,17 @@ | ||
FROM eclipse-temurin:19-jdk-alpine | ||
LABEL authors="Greg" | ||
EXPOSE 43594/tcp | ||
|
||
RUN mkdir /app | ||
WORKDIR /app/ | ||
|
||
# Copy JAR file | ||
COPY ./game/build/libs/void-server-*.jar /app/void-server.jar | ||
|
||
# Copy configuration and cache files | ||
COPY ./data/map/ /app/data/map/ | ||
COPY ./data/spawns/ /app/data/spawns/ | ||
COPY ./data/definitions/ /app/data/definitions/ | ||
COPY ./data/cache/ /app/data/cache/ | ||
|
||
CMD ["java", "-jar", "void-server.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: "3.8" | ||
services: | ||
void: | ||
image: greghib/void | ||
volumes: | ||
- ./data/saves/:/app/data/saves | ||
ports: | ||
- "43594:43594" |