2015-06-22 12:03:40 +00:00
|
|
|
FROM busybox:ubuntu-14.04
|
|
|
|
MAINTAINER Werner Beroux <werner@beroux.com>
|
|
|
|
|
|
|
|
# Install ngrok
|
|
|
|
ADD https://dl.ngrok.com/ngrok_2.0.19_linux_amd64.zip /ngrok.zip
|
|
|
|
RUN unzip -o ngrok.zip -d /bin && \
|
2015-11-03 13:55:03 +00:00
|
|
|
rm -f ngrok.zip
|
2015-06-22 12:03:40 +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
|
|
|
|
|
|
|
# Create non-root user
|
|
|
|
RUN echo 'ngrok:x:6737:6737:Ngrok user:/home/ngrok:/bin/false' >> /etc/passwd
|
|
|
|
RUN echo 'ngrok:x:6737:' >> /etc/group
|
|
|
|
RUN chown ngrok:ngrok /home/ngrok
|
|
|
|
RUN chmod -R go=u,go-w /home/ngrok
|
|
|
|
RUN chmod go= /home/ngrok
|
|
|
|
|
|
|
|
USER ngrok
|
|
|
|
|
|
|
|
EXPOSE 4040
|
|
|
|
|
2015-07-10 12:35:28 +00:00
|
|
|
CMD ["/entrypoint.sh"]
|