Last active
September 9, 2015 15:17
-
-
Save clalimarmo/f9fb1c1492f952d2f425 to your computer and use it in GitHub Desktop.
Rails development environment with Docker, Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.2.3 | |
RUN \ | |
apt-get update -qq && \ | |
apt-get install -y build-essential | |
RUN mkdir app | |
WORKDIR app | |
COPY Gemfile ./ | |
RUN bundle install | |
COPY . ./ |
You should also add the Gemfile.lock
before the rest of the repo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might also want to add the follow after line 4 to clean up after the package installations:
# cleanup after installations apt-get autoremove -y && \ apt-get clean all && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*