Created
January 14, 2016 15:57
-
-
Save henriquemenezes/c5076d6938ff3163fdcf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ROM ruby:2.2.3 | |
RUN apt-get update -qq && apt-get install -y build-essential | |
RUN apt-get install -y libpq-dev | |
RUN apt-get install -y ghostscript | |
RUN mkdir /app | |
WORKDIR /app | |
ADD Gemfile /app/Gemfile | |
ADD Gemfile.lock /app/Gemfile.lock | |
RUN bundle install | |
ADD . /app | |
RUN groupadd -r deployer && useradd -r -g deployer deployer | |
RUN chown -R deployer:deployer /app | |
USER deployer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment