-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
48 lines (36 loc) · 1.39 KB
/
Dockerfile
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
45
46
47
# -----------------------------------------------------------------------------
# docker-minecraft
#
# Builds a basic docker image that can run a Minecraft server
# (http://minecraft.net/).
#
# Authors: Carsten Ringe
# Updated: Sep 13th, 2015
# Require: Docker (http://www.docker.io/)
# -----------------------------------------------------------------------------
# Base system is the LTS version of Ubuntu.
FROM ubuntu
# 25565 is for minecraft
EXPOSE 25565
# 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 --quiet --yes update && apt-get --quiet --yes upgrade && apt-get --quiet --yes clean
RUN apt-get --quiet --yes install curl unzip openjdk-7-jre-headless && apt-get --quiet --yes clean
# create defalt directory
RUN mkdir /data
WORKDIR /data
# Load in all of our config files.
ADD ops.json /data/
ADD whitelist.json /data/
# download technicpack
RUN curl -s "http://servers.technicpack.net/Technic/servers/bteam/BTeam_Server_v1.0.12a.zip" -o /data/BTeam_Server_v1.0.12a.zip
#ADD BTeam_Server_v1.0.12a.zip /data/BTeam_Server_v1.0.12a.zip
RUN unzip BTeam_Server_v1.0.12a.zip && rm BTeam_Server_v1.0.12a.zip
# disable mods
RUN mkdir -p mods/disabled
#RUN mv mods/morph*.zip mods/disabled/
# Fix all permissions
RUN chmod +x launch.sh
# /start runs it.
CMD ["./launch.sh"]