-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
130 additions
and
33 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 |
---|---|---|
|
@@ -2,17 +2,16 @@ FROM nimmis/java:openjdk-8-jdk | |
|
||
MAINTAINER nimmis <[email protected]> | ||
|
||
#non-interactive installation | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
#default directory for SPIGOT-server | ||
ENV SPIGOT_HOME /minecraft | ||
|
||
ADD spigot_init.sh /spigot_init.sh | ||
#default version | ||
ENV SPIGOT_VER latest | ||
|
||
RUN chmod +x /spigot_init.sh | ||
# add extra files needed | ||
COPY rootfs / | ||
|
||
# fast workaround | ||
# add some needed commands | ||
RUN apt-get update && apt-get install -y wget git && apt-get clean all | ||
|
||
# Make special user for minecraft to run in | ||
|
@@ -22,6 +21,4 @@ RUN useradd -s /bin/bash -d /minecraft -m minecraft | |
# expose minecraft port | ||
EXPOSE 25565 | ||
|
||
#set default command | ||
CMD /spigot_init.sh | ||
|
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