ARG ruby_version FROM ruby:$ruby_version RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY Gemfile /usr/src/app/ RUN bundle install COPY . /usr/src/app ENV QUEUE=* CMD ["bundle", "exec", "rake", "resque:work"]