Skip to content

Instantly share code, notes, and snippets.

@pdonorio
Created September 14, 2018 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdonorio/06d2e41e2d53a36b62b8709f81ef672f to your computer and use it in GitHub Desktop.
Save pdonorio/06d2e41e2d53a36b62b8709f81ef672f to your computer and use it in GitHub Desktop.
Doctl docker image base
FROM alpine:3.8
ENV DOCTL_VERSION=1.9.0
RUN apk add --no-cache curl
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
WORKDIR /usr/local/bin
ENV GITURL https://github.com/digitalocean/doctl/releases/download
RUN curl -L \
$GITURL/v${DOCTL_VERSION}/doctl-${DOCTL_VERSION}-linux-amd64.tar.gz \
| tar xz
RUN chmod +x ./*
# ENTRYPOINT ["doctl"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment