mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
42a6a534bc
Signed-off-by: Jess Frazelle <acidburn@github.com>
26 lines
573 B
Docker
26 lines
573 B
Docker
FROM alpine:latest as builder
|
|
MAINTAINER Jessica Frazelle <jess@linux.com>
|
|
|
|
RUN apk add --no-cache \
|
|
ca-certificates \
|
|
curl \
|
|
gzip
|
|
|
|
ENV NOW_VERSION 13.0.0-canary.16
|
|
|
|
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" ]
|