forked from glubo/e6-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (44 loc) · 1.37 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
48
FROM adoptopenjdk/openjdk11:alpine
ARG ENIGMATICA_REPOSITORY=https://github.com/NillerMedDild/Enigmatica6.git
ARG ENIGMATICA_COMMIT_ISH=0.4.14
ENV EULA=TRUE
# install the powershell
RUN apk add --no-cache \
ca-certificates \
less \
ncurses-terminfo-base \
krb5-libs \
libgcc \
libintl \
libssl1.1 \
libstdc++ \
tzdata \
userspace-rcu \
zlib \
dos2unix \
git \
bash \
icu-libs \
curl &&\
apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache lttng-ust &&\
curl -L https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/powershell-7.1.3-linux-alpine-x64.tar.gz -o /tmp/powershell.tar.gz &&\
mkdir -p /opt/microsoft/powershell/7 &&\
tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7 &&\
chmod +x /opt/microsoft/powershell/7/pwsh &&\
ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh &&\
ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/powershell
# clone e6
RUN mkdir -p /opt/minecraft &&\
cd /opt/minecraft &&\
git clone $ENIGMATICA_REPOSITORY /opt/minecraft
WORKDIR /opt/minecraft
# setup e6
RUN git checkout $ENIGMATICA_COMMIT_ISH &&\
cd automation &&\
dos2unix *.sh &&\
pwsh update-server.ps1 $ENIGMATICA_COMMIT_ISH &&\
cd .. &&\
java -jar InstanceSync.jar
COPY docker-entrypoint.sh /opt/minecraft
ENTRYPOINT ["/opt/minecraft/docker-entrypoint.sh"]
CMD ["minecraft"]