Skip to content

Commit 42a9b06

Browse files
authored
Introduce Dockerfile-local (#289)
1 parent b391c82 commit 42a9b06

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ COPY . /project
55
WORKDIR /project
66
RUN ./gradlew build -x test
77

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

Dockerfile-local

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This assumes that "./gradlew build [-x test]" was run
2+
# Keep any changes made here strictly in sync with Dockerfile
3+
FROM itzg/minecraft-server:java8
4+
COPY web/build/libs/*-all.jar /mods/
5+
6+
ENV EULA=TRUE
7+
ENV TYPE=SPONGEVANILLA
8+
EXPOSE 25565 25575 7070 8080
9+
ENTRYPOINT [ "/start" ]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ You can obviously mix the order and repeat titles, comments, chats, narrations,
7474

7575
docker build -t minecraft-storeys-maker .
7676

77+
or
78+
79+
./gradlew build [-x test]
80+
docker build -f Dockerfile-local -t minecraft-storeys-maker .
81+
82+
and then:
83+
7784
docker run -it --rm -e OPS=73551f35-7acb-45c0-bc65-8083c53eec69 \
7885
-v $HOME/MinecraftData:/data:Z \
7986
-p 25565:25565 -p 8080:8080 -p 7070:7070 minecraft-storeys-maker

0 commit comments

Comments
 (0)