Skip to content

Instantly share code, notes, and snippets.

@oraposa
Last active December 28, 2017 21:47
Show Gist options
  • Save oraposa/e8cd024fa94f488aeaf394e8d4c93a44 to your computer and use it in GitHub Desktop.
Save oraposa/e8cd024fa94f488aeaf394e8d4c93a44 to your computer and use it in GitHub Desktop.
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