Skip to content

Instantly share code, notes, and snippets.

@bryanhuntesl
Created July 10, 2020 13:02
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 bryanhuntesl/70950604e81317e721aa8f33c4182520 to your computer and use it in GitHub Desktop.
Save bryanhuntesl/70950604e81317e721aa8f33c4182520 to your computer and use it in GitHub Desktop.
cat <<EOF | docker build --build-arg=SOURCE=https://github.com/elixir-lang/elixir/archive/master.tar.gz .
FROM alpine
ARG SOURCE
ENV SOURCE=$SOURCE
RUN apk add curl
RUN echo "building source : $SOURCE"
WORKDIR /tmp
RUN mkdir -p /work && curl -L $SOURCE | tar zxv && mv $(find . -maxdepth 2 -name VERSION -exec dirname {} \; )/* /work/
WORKDIR /work
RUN ls -la
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment