Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Dockerfile-local #289

Merged
merged 1 commit into from
Apr 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ COPY . /project
WORKDIR /project
RUN ./gradlew build -x test

# Keep any changes made here strictly in sync with Dockerfile-local
FROM itzg/minecraft-server:java8
COPY --from=build /project/web/build/libs/*-all.jar /mods/

Expand Down
9 changes: 9 additions & 0 deletions Dockerfile-local
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This assumes that "./gradlew build [-x test]" was run
# Keep any changes made here strictly in sync with Dockerfile
FROM itzg/minecraft-server:java8
COPY web/build/libs/*-all.jar /mods/

ENV EULA=TRUE
ENV TYPE=SPONGEVANILLA
EXPOSE 25565 25575 7070 8080
ENTRYPOINT [ "/start" ]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ You can obviously mix the order and repeat titles, comments, chats, narrations,

docker build -t minecraft-storeys-maker .

or

./gradlew build [-x test]
docker build -f Dockerfile-local -t minecraft-storeys-maker .

and then:

docker run -it --rm -e OPS=73551f35-7acb-45c0-bc65-8083c53eec69 \
-v $HOME/MinecraftData:/data:Z \
-p 25565:25565 -p 8080:8080 -p 7070:7070 minecraft-storeys-maker
Expand Down