-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.amd64
More file actions
23 lines (18 loc) · 1.03 KB
/
Dockerfile.amd64
File metadata and controls
23 lines (18 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ghcr.io/dockhippie/minecraft-vanilla:1.20.2-amd64@sha256:c1a2e1edb6ba5ed36f4eddeb3f5cf9ca70f39dcc96cf044088000ed27d636245 AS build
EXPOSE 25565 25575
ENV NEOFORGE_VERSION 20.2.86
ENV NEOFORGE_URL https://maven.neoforged.net/releases/net/neoforged/neoforge/${NEOFORGE_VERSION}/neoforge-${NEOFORGE_VERSION}-installer.jar
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y libatomic1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
curl --create-dirs -sLo /usr/share/minecraft/neoforge-${NEOFORGE_VERSION}-installer.jar ${NEOFORGE_URL} && \
cd /usr/share/minecraft && \
mkdir mods && \
java -jar neoforge-${NEOFORGE_VERSION}-installer.jar --installServer && \
rm -f neoforge-${NEOFORGE_VERSION}-installer.jar neoforge-${NEOFORGE_VERSION}-installer.jar.log run.bat run.sh
COPY ./overlay /
RUN find /etc/container.d /etc/entrypoint.d -type f -name \*.sh -exec sed -i 's/\r$//' {} +; \
sed -i 's/\r$//' /usr/bin/container && \
chmod +x /usr/bin/container /etc/container.d/*.sh /etc/entrypoint.d/*.sh