File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
1
FROM debian
2
2
3
- # ARCH is only set to avoid repetition in Dockerfile since the binary download only supports amd64
3
+ # ARCH is only set to avoid repetition in Dockerfile, use --build-arg ARCH=arm64 for arm cpu
4
4
ARG ARCH=amd64
5
5
6
6
ARG APT_UPDATE=20210112
@@ -13,6 +13,18 @@ RUN apt-get update && \
13
13
&& apt-get clean \
14
14
&& rm -rf /var/lib/apt/lists/*
15
15
16
+ # Instal box64 on arm
17
+ RUN if [ "$ARCH" = "arm64" ] ; then \
18
+ apt-get update && \
19
+ DEBIAN_FRONTEND=noninteractive apt-get install -y debian-keyring && \
20
+ curl -L https://ryanfortner.github.io/box64-debs/box64.list -o /etc/apt/sources.list.d/box64.list && \
21
+ curl -L https://ryanfortner.github.io/box64-debs/KEY.gpg | gpg --dearmor > /usr/share/keyrings/box64-debs-archive-keyring.gpg && \
22
+ apt-get update && \
23
+ DEBIAN_FRONTEND=noninteractive apt-get install -y box64 \
24
+ && apt-get clean \
25
+ && rm -rf /var/lib/apt/lists/* ;\
26
+ fi
27
+
16
28
EXPOSE 19132/udp
17
29
18
30
VOLUME ["/data" ]
Original file line number Diff line number Diff line change @@ -159,4 +159,8 @@ set-property --file server.properties --bulk /etc/bds-property-definitions.json
159
159
export LD_LIBRARY_PATH=.
160
160
161
161
echo " Starting Bedrock server..."
162
- exec ./bedrock_server-${VERSION}
162
+ if [ -f /usr/local/bin/box64 ] ; then
163
+ exec box64 ./bedrock_server-${VERSION}
164
+ else
165
+ exec ./bedrock_server-${VERSION}
166
+ fi
You can’t perform that action at this time.
0 commit comments