Add ARM Dockerfile (#23)

This commit is contained in:
Adrien Kühn 2018-08-21 03:24:57 -04:00 committed by Werner Beroux
parent 6189eaf3a4
commit 80c2b07e42
1 changed files with 25 additions and 0 deletions

25
Dockerfile.armhf Normal file
View File

@ -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"]