Docker Sinatra web

FROM aliyun_ubuntu
MAINTAINER James Turnbull "[email protected]"
ENV REFRESHED_AT 2014-06-01

RUN apt-get -yqq update && apt-get -yqq install ruby ruby-dev build-essential redis-tools
RUN gem install --no-rdoc --no-ri sinatra json redis

RUN mkdir -p /opt/webapp

EXPOSE 4567

CMD [ "/opt/webapp/bin/webapp" ]
 
  
sudo docker build -t sinatra .
 
  
sudo docker run -d -p 4567 --name sinatra -v $PWD/webapp:/opt/webapp sinatra

你可能感兴趣的:(Docker Sinatra web)