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
Created
July 10, 2020 13:02
-
-
Save bryanhuntesl/70950604e81317e721aa8f33c4182520 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment