2020-01-15 21:34:59 +01:00
|
|
|
FROM ruby:2.5.7
|
2020-01-16 11:25:39 +01:00
|
|
|
RUN gem install bundler
|
|
|
|
|
|
|
|
# Add google package repository for google chrome
|
|
|
|
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
|
|
|
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2018-03-18 21:21:59 +01:00
|
|
|
apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs npm \
|
2020-01-16 11:25:39 +01:00
|
|
|
libxml2-dev libxslt1-dev pkg-config google-chrome-stable
|
2016-01-23 20:33:02 +01:00
|
|
|
|
|
|
|
RUN mkdir -p /app
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
2016-03-08 08:58:31 +01:00
|
|
|
|
2016-01-23 20:33:02 +01:00
|
|
|
COPY Gemfile Gemfile
|
|
|
|
COPY Gemfile.lock Gemfile.lock
|
2016-05-04 20:56:02 +02:00
|
|
|
RUN bundle config build.nokogiri --use-system-libraries
|
2016-01-23 20:33:02 +01:00
|
|
|
RUN bundle install
|
|
|
|
|
|
|
|
ADD . /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
2019-04-14 23:51:40 +02:00
|
|
|
COPY ./docker-entrypoint.sh /
|
|
|
|
RUN chmod +x docker-entrypoint.sh
|
|
|
|
|
2016-01-23 20:33:02 +01:00
|
|
|
EXPOSE 3000
|
2019-04-14 23:51:40 +02:00
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
2016-01-23 20:33:02 +01:00
|
|
|
CMD ["rails", "server", "-b", "0.0.0.0"]
|