-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 1.01 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
FROM java:8
MAINTAINER Tim Chaubet <tim@chaubet.be>
RUN apt-get install -y wget unzip && \
addgroup --gid 1234 minecraft && \
adduser --disabled-password --home=/data --uid 1234 --gid 1234 --gecos "minecraft user" minecraft
RUN mkdir /tmp/feed-the-beast && cd /tmp/feed-the-beast && \
## pull file redirected from https://www.curseforge.com/minecraft/modpacks/skyfactory-4/download/3012800/file
wget -c https://edge.forgecdn.net/files/3565/687/SkyFactory-4_Server_4_2_4.zip -O SkyFactory_4_Server.zip && \
unzip SkyFactory_4_Server.zip -d /tmp/feed-the-beast && \
chmod -R 777 /tmp/feed-the-beast && \
chown -R minecraft /tmp/feed-the-beast && \
cd /tmp/feed-the-beast && bash -x Install.sh && \
chmod -R 777 /tmp/feed-the-beast && \
chown -R minecraft /tmp/feed-the-beast
COPY start.sh /start.sh
RUN chmod +x /start.sh
USER minecraft
VOLUME /data
WORKDIR /data
EXPOSE 25565
CMD ["/start.sh"]
ENV MOTD "A Minecraft (SkyFactory 4.2.4) Server Powered by Docker"
ENV LEVEL world
ENV JVM_OPTS "-Xms4048m -Xmx4048m"