Skip to content

Instantly share code, notes, and snippets.

@jdelStrother
Last active November 1, 2017 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdelStrother/072cdae761873b3babfd5b645abf3b6f to your computer and use it in GitHub Desktop.
Save jdelStrother/072cdae761873b3babfd5b645abf3b6f to your computer and use it in GitHub Desktop.
version: '3'
services:
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
ports:
- "5000:3000"
volumes:
- .:/usr/src/app
FROM ruby:2.4
# Versions: https://pypi.python.org/pypi/awscli#downloads
ENV AWS_CLI_VERSION 1.11.178
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python-dev build-essential groff less && \
curl -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py && \
python /tmp/get-pip.py && \
pip --no-cache-dir install awscli==${AWS_CLI_VERSION} && \
rm -rf /var/lib/apt/lists/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment