Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. FROM alpine:3.9
  2. MAINTAINER Werner Beroux <werner@beroux.com>
  3. RUN set -x && \
  4. apk add --no-cache -t .deps ca-certificates && \
  5. # Install glibc on Alpine (required by docker-compose) from
  6. # https://github.com/sgerrand/alpine-pkg-glibc
  7. # See also https://github.com/gliderlabs/docker-alpine/issues/11
  8. wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
  9. wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.29-r0/glibc-2.29-r0.apk && \
  10. apk add glibc-2.29-r0.apk && \
  11. rm glibc-2.29-r0.apk && \
  12. apk del --purge .deps
  13. RUN set -x \
  14. # Install ngrok (latest official stable from https://ngrok.com/download).
  15. && apk add --no-cache curl \
  16. && curl -Lo /ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip \
  17. && unzip -o /ngrok.zip -d /bin \
  18. && rm -f /ngrok.zip \
  19. # Create non-root user.
  20. && adduser -h /home/ngrok -D -u 6737 ngrok
  21. RUN ngrok --version
  22. # Add config script.
  23. COPY --chown=ngrok ngrok.yml /home/ngrok/.ngrok2/
  24. COPY entrypoint.sh /
  25. USER ngrok
  26. ENV USER=ngrok
  27. EXPOSE 4040
  28. CMD ["/entrypoint.sh"]