Dockerfile 547 B

12345678910111213141516171819202122
  1. FROM alpine:3.7
  2. MAINTAINER Werner Beroux <werner@beroux.com>
  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-amd64.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 ngrok.yml /home/ngrok/.ngrok2/
  13. COPY entrypoint.sh /
  14. USER ngrok
  15. ENV USER=ngrok
  16. EXPOSE 4040
  17. CMD ["/entrypoint.sh"]