-
Notifications
You must be signed in to change notification settings - Fork 64
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
1 parent
757d6dd
commit 17cca20
Showing
2 changed files
with
26 additions
and
2 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,25 @@ | ||
# Minecraft server for 1.6.2 | ||
|
||
FROM ubuntu | ||
|
||
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | ||
RUN apt-get update | ||
RUN apt-get upgrade -y | ||
|
||
RUN apt-get install -y python-software-properties | ||
RUN add-apt-repository ppa:webupd8team/java -y | ||
|
||
RUN apt-get update | ||
RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections | ||
|
||
RUN apt-get install -y git curl oracle-java7-installer | ||
|
||
RUN apt-get install -y wget | ||
|
||
RUN mkdir /minecraft | ||
RUN wget -O /minecraft/minecraft.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.6.2/minecraft_server.1.6.2.jar | ||
RUN chmod +x /minecraft/minecraft.jar | ||
|
||
EXPOSE 25565 | ||
|
||
CMD (cd /minecraft && java -Xmx1024M -Xms768M -jar minecraft.jar nogui) |