Arm64 support (#291)
This commit is contained in:
1 parent
904ad929e2
commit
6c69374ca5
2 files changed
+18
-2
No files matched your search
+13
-1
@@ -1,6 +1,6 @@
|
||||
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 APT_UPDATE=20210112
|
||||
@@ -13,6 +13,18 @@ RUN apt-get update && \
|
||||
&& apt-get clean \
|
||||
&& 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
|
||||
|
||||
VOLUME ["/data"]
|
||||
|
||||
Reference in new issue
Block a user