Created
December 19, 2016 10:32
-
-
Save bonyiii/e6594c7cb2d4ce8478048e8325cccbed to your computer and use it in GitHub Desktop.
Rails application 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 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