From 80c2b07e42e80e0be63591bc0bec05a970daa845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20K=C3=BChn?= Date: Tue, 21 Aug 2018 03:24:57 -0400 Subject: [PATCH] Add ARM Dockerfile (#23) --- Dockerfile.armhf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile.armhf diff --git a/Dockerfile.armhf b/Dockerfile.armhf new file mode 100644 index 0000000..8ee7ec9 --- /dev/null +++ b/Dockerfile.armhf @@ -0,0 +1,25 @@ +FROM resin/raspberrypi3-alpine + +RUN [ "cross-build-start" ] + +RUN set -x \ + # Install ngrok (latest official stable from https://ngrok.com/download). + && apk add --no-cache curl \ + && curl -Lo /ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip \ + && unzip -o /ngrok.zip -d /bin \ + && rm -f /ngrok.zip \ + # Create non-root user. + && adduser -h /home/ngrok -D -u 6737 ngrok + +# Add config script. +COPY ngrok.yml /home/ngrok/.ngrok2/ +COPY entrypoint.sh / + +RUN [ "cross-build-end" ] + +USER ngrok +ENV USER=ngrok + +EXPOSE 4040 + +CMD ["/entrypoint.sh"]