From 12d20f28201c487ba8bdce7101a2e27b30c0d79f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 21 Feb 2020 21:40:45 +0800 Subject: [PATCH] add Docker image for linuxbrew --- dockerfiles/homebrew-mirror/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 dockerfiles/homebrew-mirror/Dockerfile diff --git a/dockerfiles/homebrew-mirror/Dockerfile b/dockerfiles/homebrew-mirror/Dockerfile new file mode 100644 index 0000000..342ebac --- /dev/null +++ b/dockerfiles/homebrew-mirror/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:3 + +RUN apk add --no-cache bash ruby ruby-bigdecimal git curl ncurses ruby-json ruby-etc ruby-irb ruby-json ruby-test-unit + +RUN git clone --depth 1 https://github.com/Homebrew/brew.git /home/homebrew/.linuxbrew/homebrew && cd /home/homebrew/.linuxbrew && mkdir bin && ln -s /home/homebrew/.linuxbrew/homebrew/bin/brew /home/homebrew/.linuxbrew/bin + +RUN git clone --depth 1 https://github.com/gaoyifan/homebrew-bottle-mirror.git /home/homebrew/.linuxbrew/homebrew/Library/Taps/gaoyifan/homebrew-bottle-mirror + +RUN chown -R 2000 /home/homebrew