Skip to content

Instantly share code, notes, and snippets.

@bonyiii
Created December 19, 2016 10:32
Show Gist options
  • Save bonyiii/e6594c7cb2d4ce8478048e8325cccbed to your computer and use it in GitHub Desktop.
Save bonyiii/e6594c7cb2d4ce8478048e8325cccbed to your computer and use it in GitHub Desktop.
Rails application dockerfile
FROM myapp-base
RUN mkdir -p /var/www/myapp-api && chown dev /var/www/myapp-api
WORKDIR /var/www/myapp-api
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE 3000
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