Skip to content

Instantly share code, notes, and snippets.

@atomaka
Last active March 1, 2017 03:45
Show Gist options
  • Save atomaka/d7c62f9c61414ee9944fd65d2401fd61 to your computer and use it in GitHub Desktop.
Save atomaka/d7c62f9c61414ee9944fd65d2401fd61 to your computer and use it in GitHub Desktop.
Simple development Dockerfile
FROM ruby:2.3-alpine
RUN apk add --no-cache build-base postgresql-dev tzdata
ADD Gemfile* /app/
RUN cd /app; bundle install
ADD . /app
RUN chown -R nobody:nogroup /app
USER nobody
WORKDIR /app
CMD ["bundle", "exec", "rails", "s", "-b", "0.0.0.0", "-p", "8080"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment