repos
/ docker-minecraft master

docker-minecraft

mirror archived upstream

An easy way to get a Minecraft server up and running using Docker.

dockergame-serverhandcodedminecraftminecraft-servershell

1.3 KB · 45 lines · Docker Raw History
 1# -----------------------------------------------------------------------------
 2# docker-minecraft
 3#
 4# Builds a basic docker image that can run a Minecraft server
 5# (http://minecraft.net/).
 6#
 7# Authors: Isaac Bythewood
 8# Updated: Dec 14th, 2014
 9# Require: Docker (http://www.docker.io/)
10# -----------------------------------------------------------------------------
11
12
13# Base system is the LTS version of Ubuntu.
14FROM   ubuntu:14.04
15
16
17# Make sure we don't get notifications we can't answer during building.
18ENV    DEBIAN_FRONTEND noninteractive
19
20
21# Download and install everything from the repos.
22RUN    apt-get --yes update; apt-get --yes upgrade; apt-get --yes install software-properties-common
23RUN    sudo apt-add-repository --yes ppa:webupd8team/java; apt-get --yes update
24RUN    echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections  && \
25       echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections  && \
26       apt-get --yes install curl oracle-java8-installer ; apt-get clean
27
28
29# Load in all of our config files.
30ADD    ./scripts/start /start
31
32
33# Fix all permissions
34RUN    chmod +x /start
35
36
37# 25565 is for minecraft
38EXPOSE 25565
39
40# /data contains static files and database
41VOLUME ["/data"]
42
43# /start runs it.
44CMD    ["/start"]