Last active
March 1, 2017 03:45
-
-
Save atomaka/d7c62f9c61414ee9944fd65d2401fd61 to your computer and use it in GitHub Desktop.
Simple development Dockerfile
This file contains 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 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