foodsoft/Dockerfile

24 lines
514 B
Text
Raw Normal View History

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