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