-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
s390x.Dockerfile
55 lines (39 loc) · 1.7 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
# Minecraft Java Paper Server Docker Container
# Author: James A. Chambers - https://jamesachambers.com/legendary-paper-minecraft-java-container/
# GitHub Repository: https://github.com/TheRemote/Legendary-Java-Minecraft-Paper
# 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
# Optional maximum memory Minecraft is allowed to use
ENV MaxMemory=
# Optional Paper Minecraft Version override
ENV Version="1.21"
# 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=""
# IPV4 Ports
EXPOSE 25565/tcp
# 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"]