Last active
December 28, 2017 21:47
-
-
Save oraposa/e8cd024fa94f488aeaf394e8d4c93a44 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
FROM phusion/passenger-ruby24 | |
ENV APP_HOME /home/app | |
ENV TERM xterm-256color | |
ENV BUNDLE_PATH /bundle | |
WORKDIR $APP_HOME | |
ENV DEBIAN_FRONTEND noninteractive | |
COPY ./entrypoint.sh / | |
RUN apt-get update -qq && apt-get install -y --no-install-recommends \ | |
apt-utils \ | |
postgresql-client \ | |
build-essential curl git libpq-dev nodejs tzdata graphicsmagick \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& gem install bundler # make sure we got everything | |
COPY Gemfile* ./ | |
COPY ./docker_bashrc / | |
RUN gem install bundler | |
RUN bundle install | |
ADD . . | |
EXPOSE 3000 | |
ENTRYPOINT ["/home/app/entrypoint.sh"] | |
EXPOSE 3000 | |
CMD ["bundle","exec","rails","s","--verbose", "-b","0.0.0.0"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment