ngrok/Dockerfile

28 lines
741 B
Docker
Raw Normal View History

2015-11-03 13:57:36 +00:00
# Note: The newer busybox:glibc is missing libpthread.so.0.
2015-06-22 12:03:40 +00:00
FROM busybox:ubuntu-14.04
MAINTAINER Werner Beroux <werner@beroux.com>
2016-03-11 10:19:59 +00:00
# Install ngrok (latest official stable from https://ngrok.com/download).
ADD https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip /ngrok.zip
2015-11-03 13:57:36 +00:00
RUN set -x \
2016-06-28 15:16:54 +00:00
&& unzip -o /ngrok.zip -d /bin \
2015-11-03 13:57:36 +00:00
&& rm -f /ngrok.zip
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
2016-03-11 10:19:59 +00:00
# Create non-root user.
2016-03-11 10:25:04 +00:00
RUN set -x \
&& echo 'ngrok:x:6737:6737:Ngrok user:/home/ngrok:/bin/false' >> /etc/passwd \
&& echo 'ngrok:x:6737:' >> /etc/group \
&& chown ngrok:ngrok /home/ngrok \
&& chmod -R go=u,go-w /home/ngrok \
&& chmod go= /home/ngrok
2015-06-22 12:03:40 +00:00
USER ngrok
EXPOSE 4040
CMD ["/entrypoint.sh"]