2016-02-06 15:52:23 +01:00
|
|
|
FROM ruby:2.3
|
2015-04-26 15:20:05 +02:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install --no-install-recommends -y \
|
2017-02-11 12:44:49 +01:00
|
|
|
cron \
|
2015-04-26 15:20:05 +02:00
|
|
|
libv8-dev \
|
2016-10-14 18:08:01 +02:00
|
|
|
libmagic-dev \
|
2017-02-11 12:44:49 +01:00
|
|
|
libmysqlclient-dev && \
|
2015-04-26 15:20:05 +02:00
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
|
|
apt-get clean
|
|
|
|
|
2017-02-11 12:44:49 +01:00
|
|
|
ENV RAILS_ENV=production
|
2015-04-26 15:20:05 +02:00
|
|
|
|
2017-02-11 12:44:49 +01:00
|
|
|
WORKDIR /usr/src/app
|
2016-02-06 15:52:23 +01:00
|
|
|
COPY . ./
|
2017-07-31 23:22:31 +02:00
|
|
|
RUN echo $SOURCE_COMMIT > REVISION && \
|
2017-07-31 22:40:50 +02:00
|
|
|
bundle install --without development --without test && \
|
2017-02-11 12:44:49 +01:00
|
|
|
whenever --update-crontab
|
2015-04-26 15:20:05 +02:00
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
2017-02-11 12:44:49 +01:00
|
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|
2015-05-15 20:23:53 +02:00
|
|
|
CMD ["rails", "server", "--binding", "0.0.0.0"]
|