From 1916cab05efb599b8efc7e1f89b6c48d6236e1ae Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sun, 24 Jun 2018 10:55:35 -0400 Subject: [PATCH] add transfer.sh Signed-off-by: Jess Frazelle --- transfer-sh/Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 transfer-sh/Dockerfile diff --git a/transfer-sh/Dockerfile b/transfer-sh/Dockerfile new file mode 100644 index 0000000..6a3416d --- /dev/null +++ b/transfer-sh/Dockerfile @@ -0,0 +1,33 @@ +FROM alpine:latest +LABEL maintainer "Jess Frazelle " + +ENV PATH /go/bin:/usr/local/go/bin:$PATH +ENV GOPATH /go + +RUN apk --no-cache add \ + ca-certificates + +ENV TRANSFER_SH_VERSION master + +RUN buildDeps=' \ + bash \ + go \ + git \ + gcc \ + g++ \ + libc-dev \ + libgcc \ + make \ + ' \ + set -x \ + && apk --no-cache add $buildDeps \ + && git clone --depth 1 --branch ${TRANSFER_SH_VERSION} https://github.com/dutchcoders/transfer.sh /go/src/github.com/dutchcoders/transfer.sh \ + && cd /go/src/github.com/dutchcoders/transfer.sh \ + && go build -o /usr/bin/transfer.sh \ + && apk del $buildDeps \ + && rm -rf /go \ + && echo "Build complete." + + +ENTRYPOINT [ "transfer.sh" ] +CMD [ "--help" ]