-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 802 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:12.04
RUN echo "deb http://archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y install build-essential
RUN apt-get -y install wget unzip
RUN apt-get -y install zlib1g-dev libssl-dev libreadline6-dev libyaml-dev libxml2-dev libxslt-dev
WORKDIR /tmp
RUN wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.zip
RUN unzip ruby-2.0.0-p247.zip
WORKDIR /tmp/ruby-2.0.0-p247
RUN ./configure --prefix=/opt/rubies/ruby-2.0.0-p247
RUN make
RUN make install
WORKDIR /opt/rubies/ruby-2.0.0-p247/bin
RUN ./gem install bundler --no-rdoc --no-ri
ADD talks-app /opt/talks-app
ENV PATH /opt/rubies/ruby-2.0.0-p247/bin:$PATH
WORKDIR /opt/talks-app
RUN bundle install --path vendor/bundle
EXPOSE 9292
ENTRYPOINT bundle exec rackup -o 0.0.0.0