Skip to content

Instantly share code, notes, and snippets.

@rhaseven7h
Created December 9, 2017 08:10
Show Gist options
  • Save rhaseven7h/328ebad70abb0dc103c14c73d257235c to your computer and use it in GitHub Desktop.
Save rhaseven7h/328ebad70abb0dc103c14c73d257235c to your computer and use it in GitHub Desktop.
Dockerfile for Ruby + MySQL Client + Bundler & SQLite3 Gems
FROM ubuntu:16.04
RUN apt-get update && \
apt-get install -y \
build-essential \
zlib1g-dev \
libreadline-dev \
libssl-dev \
libffi-dev \
libncurses-dev \
libgdbm-dev \
libyaml-dev \
wget \
mysql-client
ARG RUBY_VER=1.9.3-p551
RUN echo "gem: --no-ri --no-rdoc" > /etc/gemrc && \
cd /usr/local/src && \
wget https://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p551.tar.gz && \
tar xvfz ruby-$RUBY_VER.tar.gz && \
ln -s ruby-$RUBY_VER ruby && \
cd ruby && \
./configure && \
make && \
make install
RUN apt-get install -y \
libsqlite3-dev
RUN gem install \
bundler \
sqlite3
WORKDIR /root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment