Created
September 14, 2018 17:51
-
-
Save pdonorio/06d2e41e2d53a36b62b8709f81ef672f to your computer and use it in GitHub Desktop.
Doctl docker image base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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