-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (26 loc) · 879 Bytes
/
Dockerfile
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
30
31
32
33
34
35
36
37
38
39
# Ruby 1.9 using ruby-ni
#
# VERSION 0.0.1
FROM base
MAINTAINER Rafael Rosa "[email protected]"
# Makes sure wget is installed
RUN apt-get install -y wget git-core
# Add repo key to keylist
RUN wget -O - http://apt.hellobits.com/hellobits.key | apt-key add -
# Add repo to list
RUN echo 'deb http://apt.hellobits.com/ precise main' | tee /etc/apt/sources.list.d/hellobits.list
# Update repos
RUN apt-get update
# Install ruby-ni, 2.0
RUN apt-get install -y ruby-ni
# Add bundler
RUN gem install bundler
# Pull project
RUN git clone https://github.com/rafaelrosafu/test_docker.git /home/test_docker
# Setup project environment
RUN bundle install --gemfile=/home/test_docker/Gemfile --path=vendor
# Open port 4567
EXPOSE 4567
ENV BUNDLE_GEMFILE /home/test_docker/Gemfile
CMD ["bundle", "exec", "ruby", "/home/test_docker/server.rb"]
# Finished