-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
40 lines (31 loc) · 853 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
FROM ubuntu:16.04
MAINTAINER Franzwagner Ternus <franzwagner.str@gmail.com>
ENV TZ=America/Sao_Paulo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-add-repository -y ppa:brightbox/ruby-ng
RUN apt-get update -qq && apt-get install -y \
apt-utils \
build-essential \
libpq-dev \
redis-server \
libgmp3-dev \
libsqlite3-dev \
sqlite3 \
ruby2.0 \
rubygems \
ruby2.0-dev \
zlib1g-dev
RUN mkdir /app
COPY . /app
WORKDIR /app
RUN /usr/bin/gem install bundler
RUN /usr/bin/gem install rubygems-update
RUN update_rubygems
RUN /usr/local/bin/bundle install
ENV RAILS_ENV=development
RUN bundle exec rake assets:precompile --trace
COPY run.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/run.sh
CMD ["/usr/local/bin/run.sh"]