Last active
May 6, 2019 01:51
-
-
Save andrewmcnamara/3b4f27fb2f26013381eed7a4b2229f04 to your computer and use it in GitHub Desktop.
Docker - Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine:3.7 | |
| RUN apk add --update --no-cache --virtual ruby-build linux-headers wget | |
| RUN apk add --update --no-cache postgresql-dev build-base tzdata git nodejs \ | |
| git libc-dev libxml2-dev libxslt-dev postgresql-client \ | |
| g++ make gcc zlib-dev gdbm-dev readline-dev ruby-dev | |
| RUN wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.6.tar.bz2 \ | |
| && mkdir -p /usr/src/ruby \ | |
| && tar -xjvf ruby-2.3.6.tar.bz2 -C /usr/src/ruby --strip-components=1 \ | |
| && rm -rf ruby-* \ | |
| && cd /usr/src/ruby \ | |
| && export ac_cv_func_isnan=yes ac_cv_func_isinf=yes \ | |
| && ./configure && make -j "$(nproc)" && make install \ | |
| && rm -rf /usr/src/ruby | |
| RUN apk del ruby-build | |
| ENV PGUSER=${PG_USER} PGHOST=127.0.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment