-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.passenger
37 lines (30 loc) · 1.44 KB
/
Dockerfile.passenger
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
FROM ruby:2.2.5
MAINTAINER margus.ernits@rangeforce.com
RUN apt-get update && \
apt-get install -y --no-install-recommends sudo openssh-client libyaml-0-2 libgmp-dev libmysqlclient-dev libsqlite3-dev bundler nodejs \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log \
&& mkdir -p /var/run/sshd /var/labs/run
WORKDIR /var/www/i-tee
ENV RAILS_ENV=production
COPY /Gemfile /var/www/i-tee/Gemfile
COPY /Gemfile.lock /var/www/i-tee/Gemfile.lock
RUN gem install bundler && bundle install --jobs 20 --retry 5
COPY /Rakefile /var/www/i-tee/Rakefile
COPY /config.ru /var/www/i-tee/config.ru
COPY /lib/ /var/www/i-tee/lib/
COPY /script/ /var/www/i-tee/script/
COPY /public/ /var/www/i-tee/public/
COPY /config/ /var/www/i-tee/config/
COPY /db/ /var/www/i-tee/db/
COPY /utils/ /var/www/i-tee/utils/
COPY /app/ /var/www/i-tee/app/
COPY /version.txt /var/www/i-tee/version.txt
COPY /docker/vboxmanage /var/www/i-tee/utils/vboxmanage
COPY /docker/check-resources /var/www/i-tee/utils/check-resources
COPY /docker/application.rb /var/www/i-tee/config/application.rb
COPY /docker/devise.rb /var/www/i-tee/config/initializers/devise.rb
COPY /docker/production.rb /var/www/i-tee/config/environments/production.rb
EXPOSE 80
ENTRYPOINT [ "/usr/local/bundle/bin/passenger", "start", "-p", "80", "-e", "production", "--log-file", "/dev/stderr", "--min-instances", "10", "--max-pool-size", "30"]