-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathDockerfile
40 lines (31 loc) · 815 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
40
#
# https://github.com/subicura/slack_invite_automation_sinatra
#
# build command
# * docker build --force-rm=true -t subicura/slack_invite .
FROM ubuntu:14.04
MAINTAINER [email protected]
# update ubuntu latest
RUN \
apt-get -qq update && \
apt-get -qq -y dist-upgrade
# install essential packages
RUN \
apt-get -qq -y install build-essential software-properties-common python-software-properties git
# install ruby2.2
RUN \
add-apt-repository -y ppa:brightbox/ruby-ng && \
apt-get -qq update && \
apt-get -qq -y install ruby2.2 ruby2.2-dev && \
gem install bundler --no-ri --no-rdoc
# cleanup
RUN apt-get -qq -y clean
# add sources
ADD . /app
# add application
WORKDIR /app
# run bundle
RUN bundle install --without development test
# run
EXPOSE 80
CMD bundle exec ruby server.rb -p 80