ngrok/Dockerfile.armhf

30 lines
703 B
Docker
Raw Permalink Normal View History

2018-08-21 07:24:57 +00:00
FROM resin/raspberrypi3-alpine
2020-08-10 16:49:23 +00:00
LABEL maintainer="Giles Bradshaw <giles.bradshaw@sigyl.com>"
2018-08-21 07:24:57 +00:00
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 --chown=ngrok ngrok.yml /home/ngrok/.ngrok2/
2018-08-21 07:24:57 +00:00
COPY entrypoint.sh /
2020-07-29 18:37:52 +00:00
# Basic sanity check.
RUN su ngrok -c 'ngrok --version'
2018-08-21 07:24:57 +00:00
RUN [ "cross-build-end" ]
USER ngrok
ENV USER=ngrok
EXPOSE 4040
CMD ["/entrypoint.sh"]