Skip to content

Instantly share code, notes, and snippets.

@mur6
Last active March 28, 2019 05:10
Show Gist options
  • Save mur6/bc147f84765b60c03fff1babd31d33d0 to your computer and use it in GitHub Desktop.
Save mur6/bc147f84765b60c03fff1babd31d33d0 to your computer and use it in GitHub Desktop.
# ref. https://github.com/Linuxbrew/brew/wiki/Alpine-Linux
FROM alpine:latest
RUN apk update
RUN apk add bash build-base curl \
file git gzip libc6-compat \
ncurses ruby \
ruby-dbm ruby-etc \
ruby-irb ruby-json \
sudo coreutils grep
RUN apk add ruby-bigdecimal
RUN adduser -D -s /bin/bash linuxbrew
RUN echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers
RUN su - linuxbrew -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
#RUN /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
RUN brew install boost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment