2018-03-18 21:21:59 +01:00
|
|
|
FROM ruby:2.5
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_9.x | bash - && apt-get update && \
|
|
|
|
apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs npm \
|
2016-05-04 20:56:02 +02:00
|
|
|
libxml2-dev libxslt1-dev pkg-config \
|
2018-03-18 21:21:59 +01:00
|
|
|
libqtwebkit4 libqtwebkit-dev libqt4-dev xvfb
|
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
|
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["rails", "server", "-b", "0.0.0.0"]
|