aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorodidev <odidev@puresoftware.com>2021-12-15 08:57:27 +0530
committerGitHub <noreply@github.com>2021-12-15 11:27:27 +0800
commit82652f0f0867e14c7fec938e621a2974564961df (patch)
treead580a712897824a98c918c032cc1bbd0b236f0c
parentd60d9cf9857d1e7a7915b62851b254a5304b6cdc (diff)
Dockerfile: add ARM64 and ARMhf support (#6579)
Co-authored-by: Luciano Colosio <lucio@c8.io>
-rw-r--r--Dockerfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index a90c6612..faf651ca 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,7 +10,14 @@ COPY . .
RUN make build TAGS="cert pam"
FROM alpine:3.11
-RUN wget https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64 -O /usr/sbin/gosu \
+RUN if [ `uname -m` == "aarch64" ] ; then \
+ export arch="arm64" ; \
+ elif [ `uname -m` == "armv7l" ] ; then \
+ export arch="armhf"; \
+ else \
+ export arch="amd64" ; \
+ fi \
+ && wget https://github.com/tianon/gosu/releases/download/1.11/gosu-$arch -O /usr/sbin/gosu \
&& chmod +x /usr/sbin/gosu \
&& echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \
&& apk --no-cache --no-progress add \