-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
s390x.Dockerfile
63 lines (45 loc) · 1.9 KB
/
s390x.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Minecraft Java Paper Server + Geyser + Floodgate Docker Container
# Author: James A. Chambers - https://jamesachambers.com/minecraft-java-bedrock-server-together-geyser-floodgate/
# GitHub Repository: https://github.com/TheRemote/Legendary-Java-Minecraft-Geyser-Floodgate
# Use Ubuntu rolling version for builder
FROM ubuntu:rolling AS builder
# Update apt
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install qemu-user-static binfmt-support apt-utils -yqq && rm -rf /var/cache/apt/*
# Use Ubuntu rolling version
FROM --platform=linux/s390x ubuntu:rolling
# Add QEMU
COPY --from=builder /usr/bin/qemu-s390x-static /usr/bin/
# Fetch dependencies
RUN apt update && DEBIAN_FRONTEND=noninteractive apt-get install openjdk-21-jre-headless tzdata sudo curl unzip net-tools gawk openssl findutils pigz libcurl4 libc6 libcrypt1 apt-utils libcurl4-openssl-dev ca-certificates binfmt-support nano -yqq && rm -rf /var/cache/apt/*
# Set port environment variable
ENV Port=25565
# Set Bedrock port environment variable
ENV BedrockPort=19132
# Optional maximum memory Minecraft is allowed to use
ENV MaxMemory=
# Optional Paper Minecraft Version override
ENV Version="1.21.3"
# Optional Timezone
ENV TZ="America/Denver"
# Optional folder to ignore during backup operations
ENV NoBackup=""
# Number of rolling backups to keep
ENV BackupCount=10
# Optional switch to skip permissions check
ENV NoPermCheck=""
# Optional switch to tell curl to suppress the progress meter which generates much less noise in the logs
ENV QuietCurl=""
# Optional switch to disable ViaVersion
ENV NoViaVersion=""
# IPV4 Ports
EXPOSE 25565/tcp
EXPOSE 19132/tcp
EXPOSE 19132/udp
# Copy scripts to minecraftbe folder and make them executable
RUN mkdir /scripts
COPY *.sh /scripts/
COPY *.yml /scripts/
COPY server.properties /scripts/
RUN chmod -R +x /scripts/*.sh
# Set entrypoint to start.sh script
ENTRYPOINT ["/bin/bash", "/scripts/start.sh"]