2020-07-29 14:11:58 +00:00
|
|
|
FROM alpine:3.12
|
2015-06-22 12:03:40 +00:00
|
|
|
MAINTAINER Werner Beroux <werner@beroux.com>
|
|
|
|
|
2020-07-29 14:14:19 +00:00
|
|
|
# https://github.com/sgerrand/alpine-pkg-glibc
|
|
|
|
ARG GLIBC_VERSION=2.31-r0
|
|
|
|
|
2020-07-29 17:21:01 +00:00
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache -t .deps ca-certificates \
|
2020-07-29 14:14:19 +00:00
|
|
|
# Install glibc on Alpine (required by docker-compose)
|
2019-03-27 22:27:01 +00:00
|
|
|
# See also https://github.com/gliderlabs/docker-alpine/issues/11
|
2020-07-29 17:21:01 +00:00
|
|
|
&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
|
|
|
|
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk \
|
|
|
|
&& apk add glibc-${GLIBC_VERSION}.apk \
|
|
|
|
&& rm glibc-${GLIBC_VERSION}.apk \
|
|
|
|
&& apk del --purge .deps
|
2019-03-27 22:27:01 +00:00
|
|
|
|
2015-11-03 13:57:36 +00:00
|
|
|
RUN set -x \
|
2018-05-18 08:13:05 +00:00
|
|
|
# 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 \
|
2018-05-18 08:13:05 +00:00
|
|
|
&& 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.
|
2019-03-24 15:28:53 +00:00
|
|
|
COPY --chown=ngrok ngrok.yml /home/ngrok/.ngrok2/
|
2015-11-03 13:55:03 +00:00
|
|
|
COPY entrypoint.sh /
|
2015-06-22 12:03:40 +00:00
|
|
|
|
|
|
|
USER ngrok
|
2018-05-18 08:13:05 +00:00
|
|
|
ENV USER=ngrok
|
2015-06-22 12:03:40 +00:00
|
|
|
|
2020-07-29 18:37:52 +00:00
|
|
|
# Basic sanity check.
|
|
|
|
RUN ngrok --version
|
|
|
|
|
2015-06-22 12:03:40 +00:00
|
|
|
EXPOSE 4040
|
|
|
|
|
2015-07-10 12:35:28 +00:00
|
|
|
CMD ["/entrypoint.sh"]
|