构建Sinatra应用程序
参考:https://blog.csdn.net/liusai_soso/article/details/80360751
dockerfile如下
FROM ubuntu:14.04
MAINTAINER atmanlee "f123456163.com"
ENV REFRESHED_AT 2020-01-09
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -yqq && apt-get -yqq install ruby ruby-dev build-essential redis-tools curl
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
RUN curl -L get.rvm.io | bash -s stable
ENV rvm_bin_path=/usr/local/rvm/bin rvm_path=/usr/local/rvm rvm_prefix=/usr/local PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/bin _system_arch=x86_64 _system_version=14.04 rvm_version=1.29.9 _system_type=Linux_system_name=Ubuntu
RUN rvm install 2.3.8
ENV GEM_HOME=/usr/local/rvm/gems/ruby-2.3.8 IRBRC=/usr/local/rvm/rubies/ruby-2.3.8/.irbrc MY_RUBY_HOME=/usr/local/rvm/