Skip to content

Commit 37720c0

Browse files
committed
Initial commit
1 parent 4131d97 commit 37720c0

17 files changed

+924
-1576
lines changed

Dockerfile

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,48 @@ LABEL maintainer="Logicwar <[email protected]>"
1515
## ENVIRONMENTAL CONFIG ##
1616
#########################################
1717

18-
# Set correct environment variables
19-
ENV LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8"
20-
ENV DEBIAN_FRONTEND=noninteractive MLDONKEY_DIR="/var/lib/mldonkey"
18+
# Set default environment variables
19+
ENV DEBIAN_FRONTEND=noninteractive \
20+
DUID=1001 DGID=1001 \
21+
JVM_XX_OPTS="-XX:+UseG1GC" \
22+
JVM_MIN_MEM="1024M" \
23+
JVM_MAX_MEM="1024M" \
24+
TYPE="VANILLA" \
25+
VERSION="LATEST" \
26+
FORGEVERSION="RECOMMENDED" \
27+
EULA=""
2128

2229
#########################################
2330
## DOWNLOAD PACKAGES ##
2431
#########################################
2532

26-
# Download and install Dependencies & Main Software
33+
# Download and install Dependencies
2734
RUN \
28-
echo "**** Install Dependencies & Main Software ****" && \
35+
echo "**** Install Dependencies ****" && \
2936
apt-get update && \
3037
apt-get install --no-install-recommends -y \
31-
mldonkey-server && \
38+
wget \
39+
curl \
40+
jq \
41+
unzip \
42+
git && \
43+
echo "**** cleanup ****" && \
44+
apt-get clean && \
3245
rm -rf \
3346
/var/lib/apt/lists/* \
3447
/tmp/* \
35-
/var/tmp/* \
36-
/var/log/mldonkey \
37-
/var/lib/mldonkey/*
48+
/var/tmp/*
49+
50+
# Download and install latest jre 8 (Java)
51+
RUN \
52+
echo "**** Install JAVA JDK ****" && \
53+
cd /opt && \
54+
wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jre-8u162-linux-x64.tar.gz && \
55+
tar -zxvf jre-8u162-linux-x64.tar.gz && \
56+
update-alternatives --install /usr/bin/java java /opt/jre1.8.0_162/bin/java 1 && \
57+
echo "**** cleanup ****" && \
58+
rm jre-8u162-linux-x64.tar.gz
59+
3860

3961
#########################################
4062
## COPY & RUN SETUP SCRIPT ##
@@ -53,6 +75,6 @@ RUN \
5375
## EXPORTS AND VOLUMES ##
5476
#########################################
5577

56-
EXPOSE 4000 4001 4080 20562 20566/udp 16965 16965/udp 6209 6209/udp 6881 6882 3617/udp 4444 4444/udp
57-
VOLUME /var/lib/mldonkey /mnt/mldonkey_tmp /mnt/mldonkey_completed
78+
EXPOSE 25565 25575
79+
VOLUME /opt/minecraft/data
5880

0 commit comments

Comments
 (0)