Arm64 support (#291)
This commit is contained in:
1 parent
904ad929e2
commit
6c69374ca5
2 files changed
+17
-1
No files matched your search
+13
-1
@@ -1,6 +1,6 @@
|
|||||||
FROM debian
|
FROM debian
|
||||||
|
|
||||||
# ARCH is only set to avoid repetition in Dockerfile since the binary download only supports amd64
|
# ARCH is only set to avoid repetition in Dockerfile, use --build-arg ARCH=arm64 for arm cpu
|
||||||
ARG ARCH=amd64
|
ARG ARCH=amd64
|
||||||
|
|
||||||
ARG APT_UPDATE=20210112
|
ARG APT_UPDATE=20210112
|
||||||
@@ -13,6 +13,18 @@ RUN apt-get update && \
|
|||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Instal box64 on arm
|
||||||
|
RUN if [ "$ARCH" = "arm64" ] ; then \
|
||||||
|
apt-get update && \
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get install -y debian-keyring && \
|
||||||
|
curl -L https://ryanfortner.github.io/box64-debs/box64.list -o /etc/apt/sources.list.d/box64.list && \
|
||||||
|
curl -L https://ryanfortner.github.io/box64-debs/KEY.gpg | gpg --dearmor > /usr/share/keyrings/box64-debs-archive-keyring.gpg && \
|
||||||
|
apt-get update && \
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get install -y box64 \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* ;\
|
||||||
|
fi
|
||||||
|
|
||||||
EXPOSE 19132/udp
|
EXPOSE 19132/udp
|
||||||
|
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
|
|||||||
@@ -159,4 +159,8 @@ set-property --file server.properties --bulk /etc/bds-property-definitions.json
|
|||||||
export LD_LIBRARY_PATH=.
|
export LD_LIBRARY_PATH=.
|
||||||
|
|
||||||
echo "Starting Bedrock server..."
|
echo "Starting Bedrock server..."
|
||||||
|
if [ -f /usr/local/bin/box64 ] ; then
|
||||||
|
exec box64 ./bedrock_server-${VERSION}
|
||||||
|
else
|
||||||
exec ./bedrock_server-${VERSION}
|
exec ./bedrock_server-${VERSION}
|
||||||
|
fi
|
||||||
Reference in new issue
Block a user