forked from asuc-octo/Beehive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (22 loc) · 936 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
FROM ruby:2.5.6-slim-stretch
WORKDIR /tmp
RUN apt update \
&& apt install -y dirmngr gnupg apt-transport-https \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7 \
&& echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list \
&& echo "deb https://oss-binaries.phusionpassenger.com/apt/passenger stretch main" >> /etc/apt/sources.list.d/passenger.list \
&& apt update \
&& apt install -y \
nodejs \
libpq-dev \
build-essential \
apache2-dev \
libapache2-mod-passenger \
&& apt -t stretch-backports install -y libapache2-mod-shib
COPY Gemfile* ./
RUN bundle check || bundle install --jobs 4 --without development test
COPY . /application
WORKDIR /application
RUN bundle exec rake assets:clean \
&& bundle exec rake assets:precompile
CMD ["bash", "entrypoint.sh"]