28 lines
741 B
Docker
28 lines
741 B
Docker
# Note: The newer busybox:glibc is missing libpthread.so.0.
|
|
FROM busybox:ubuntu-14.04
|
|
MAINTAINER Werner Beroux <werner@beroux.com>
|
|
|
|
# Install ngrok (latest official stable from https://ngrok.com/download).
|
|
ADD https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip /ngrok.zip
|
|
RUN set -x \
|
|
&& unzip -o /ngrok.zip -d /bin \
|
|
&& rm -f /ngrok.zip
|
|
|
|
# Add config script.
|
|
COPY ngrok.yml /home/ngrok/.ngrok2/
|
|
COPY entrypoint.sh /
|
|
|
|
# Create non-root user.
|
|
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
|
|
|
|
USER ngrok
|
|
|
|
EXPOSE 4040
|
|
|
|
CMD ["/entrypoint.sh"]
|