From 401d655d2b3eddaee55acc9121d225a670a5651f Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 24 Sep 2018 13:07:26 -0400 Subject: [PATCH] add now Signed-off-by: Jess Frazelle --- latest-versions.sh | 1 + now/Dockerfile | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 now/Dockerfile diff --git a/latest-versions.sh b/latest-versions.sh index 492f78d..d67e89f 100755 --- a/latest-versions.sh +++ b/latest-versions.sh @@ -114,6 +114,7 @@ keepassxreboot/keepassxc robertdavidgraham/masscan MidnightCommander/mc zyedidia/micro +zeit/now-cli nzbget/nzbget bitly/oauth2_proxy facebook/osquery diff --git a/now/Dockerfile b/now/Dockerfile new file mode 100644 index 0000000..8862340 --- /dev/null +++ b/now/Dockerfile @@ -0,0 +1,26 @@ +FROM alpine:latest as builder +MAINTAINER Jessica Frazelle + +RUN apk add --no-cache \ + ca-certificates \ + curl \ + gzip + +ENV NOW_VERSION 11.4.6 + +RUN curl -sSL -o "/tmp/now.gz" "https://github.com/zeit/now-cli/releases/download/${NOW_VERSION}/now-alpine.gz" \ + && gzip -dv "/tmp/now.gz" \ + && mv /tmp/now /usr/bin/now \ + && chmod +x /usr/bin/now \ + && rm -rf "/tmp/now.gz" + +FROM alpine:latest + +RUN apk add --no-cache \ + libstdc++ + +COPY --from=builder /usr/bin/now /usr/bin/now +COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs + +ENTRYPOINT [ "now" ] +CMD [ "--help" ]