FROM ruby:latest
RUN apt-get update -qq && \
    apt-get install -y \
    build-essential \
    nodejs \
    npm
RUN gem install bundler --version 1.14

WORKDIR /app

ENV RAILS_ENV="${RAILS_ENV}" \
    BUNDLE_PATH=.bundle

CMD ["/app/bin/bundle", "exec", "bin/kinesis"]
