Dockerfile.armhf 585 B

12345678910111213141516171819202122232425
  1. FROM resin/raspberrypi3-alpine
  2. RUN [ "cross-build-start" ]
  3. RUN set -x \
  4. # Install ngrok (latest official stable from https://ngrok.com/download).
  5. && apk add --no-cache curl \
  6. && curl -Lo /ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip \
  7. && unzip -o /ngrok.zip -d /bin \
  8. && rm -f /ngrok.zip \
  9. # Create non-root user.
  10. && adduser -h /home/ngrok -D -u 6737 ngrok
  11. # Add config script.
  12. COPY --chown=ngrok ngrok.yml /home/ngrok/.ngrok2/
  13. COPY entrypoint.sh /
  14. RUN [ "cross-build-end" ]
  15. USER ngrok
  16. ENV USER=ngrok
  17. EXPOSE 4040
  18. CMD ["/entrypoint.sh"]