Skip to content

Instantly share code, notes, and snippets.

@hunter32292
Last active June 22, 2019 21:34
Show Gist options
  • Save hunter32292/70e5ae9424b85ead0988ac0f431a42cb to your computer and use it in GitHub Desktop.
Save hunter32292/70e5ae9424b85ead0988ac0f431a42cb to your computer and use it in GitHub Desktop.
Old ruby 1.9.3 docker image for winterberg
FROM ruby:1.9.3-p551
RUN mkdir /myapp
WORKDIR /myapp
COPY Gemfile /myapp/Gemfile
COPY Gemfile.lock /myapp/Gemfile.lock
RUN bundle install
COPY . /myapp
# Add a script to be executed every time the container starts.
COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
EXPOSE 3000
# Start the main process.
CMD ["rails", "server", "-b", "0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment