Skip to content

Instantly share code, notes, and snippets.

@os1ma
Created February 5, 2019 14:35
Show Gist options
  • Save os1ma/845cb8b45b11dcf00d8c996ef6e78cae to your computer and use it in GitHub Desktop.
Save os1ma/845cb8b45b11dcf00d8c996ef6e78cae to your computer and use it in GitHub Desktop.
FROM alpine:3.9
ENV HUB_VERSION=2.8.4
ENV HUB_DIR=hub-linux-amd64-${HUB_VERSION}
ENV HUB_TGZ=${HUB_DIR}.tgz
RUN apk add --no-cache \
git \
curl \
libc6-compat \
&& curl -LO https://github.com/github/hub/releases/download/v${HUB_VERSION}/${HUB_TGZ} \
&& tar -xzf ${HUB_TGZ} \
&& ${HUB_DIR}/install \
&& rm ${HUB_TGZ} \
&& rm -rf ${HUB_DIR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment