ngrok/Dockerfile

23 lines
547 B
Docker
Raw Normal View History

FROM alpine:3.7
2015-06-22 12:03:40 +00:00
MAINTAINER Werner Beroux <werner@beroux.com>
2015-11-03 13:57:36 +00:00
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-amd64.zip \
2016-06-28 15:16:54 +00:00
&& unzip -o /ngrok.zip -d /bin \
&& rm -f /ngrok.zip \
# Create non-root user.
&& adduser -h /home/ngrok -D -u 6737 ngrok
2015-06-22 12:03:40 +00:00
2016-03-11 10:19:59 +00:00
# Add config script.
2015-11-03 13:55:03 +00:00
COPY ngrok.yml /home/ngrok/.ngrok2/
COPY entrypoint.sh /
2015-06-22 12:03:40 +00:00
USER ngrok
ENV USER=ngrok
2015-06-22 12:03:40 +00:00
EXPOSE 4040
CMD ["/entrypoint.sh"]