Skip to content

Instantly share code, notes, and snippets.

@tobytripp
Created May 10, 2015 16:00
Show Gist options
  • Save tobytripp/1e138b0884eb21375e4b to your computer and use it in GitHub Desktop.
Save tobytripp/1e138b0884eb21375e4b to your computer and use it in GitHub Desktop.
FROM ruby:2.2.2
RUN adduser app --home /home/app --shell /bin/bash --disabled-password --gecos ""
ADD Gemfile /home/app/
ADD Gemfile.lock /home/app/
RUN mkdir -p /var/bundle && chown -R app:app /var/bundle /usr/local/bundle
USER app
WORKDIR /home/app
RUN cd /home/app && bundle install --deployment --path /var/bundle
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment