docker build -t rails docker/rails
docker run -v $PWD:/usr/src --rm rails rails new /usr/src/app
Created
September 15, 2019 05:56
-
-
Save isuzuki/e2fc47eddeef7eef75d180c211e30724 to your computer and use it in GitHub Desktop.
rails-docker
This file contains hidden or 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 node:12.10-buster as nodejs | |
FROM ruby:2.6-buster | |
COPY --from=nodejs /opt/yarn-v1.17.3 /opt/yarn | |
COPY --from=nodejs /usr/local/bin/node /usr/local/bin/node | |
RUN ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \ | |
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg | |
RUN gem install rails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment