-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (35 loc) · 851 Bytes
/
Dockerfile
File metadata and controls
47 lines (35 loc) · 851 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM phusion/passenger-ruby24
MAINTAINER SCPR Developers <scprdev@scpr.org>
RUN apt-get update
RUN apt-get install -y \
make \
gcc \
libgcc-4.8-dev \
g++ \
libc-dev \
libffi-dev \
git \
libmysqlclient-dev \
ruby-json \
libyaml-dev \
zlib1g \
libxml2-dev \
libxslt-dev \
tzdata \
openssl \
libcurl4-openssl-dev
RUN apt-get install -y ruby`ruby -e 'puts RUBY_VERSION[/\d+\.\d+/]'`-dev
RUN groupadd scpr && useradd -g scpr scpr
ENV HOME /streamdash
ENV RAILS_ENV=production
ENV RAILS_LOG_TO_STDOUT true
RUN mkdir $HOME
WORKDIR $HOME
RUN gem install bundler -v '1.17.1'
ENV PATH="${HOME}/bin:${PATH}"
COPY Gemfile* $HOME/
RUN bundle install --without development test --binstubs
COPY . $HOME
RUN cp config/secrets.yml.template config/secrets.yml
RUN bundle exec rake assets:precompile
RUN rm config/secrets.yml