Created
October 14, 2019 13:39
-
-
Save ikaruce/29d4848b6acf61e7d82aa525ad2e34f2 to your computer and use it in GitHub Desktop.
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 ruby:2.6.5 | |
RUN gem install rails | |
RUN wget https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.xz && \ | |
tar -xvf node-v10.16.3-linux-x64.tar.xz && \ | |
mv node-v10.16.3-linux-x64 ./bin/nodejs | |
ENV PATH=/bin/nodejs/bin:$PATH | |
RUN curl -o- -L https://yarnpkg.com/install.sh | bash | |
ENV PATH=~/.yarn/bin:$PATH | |
EXPOSE 3000 | |
RUN rails new app_test | |
WORKDIR app_test | |
RUN echo $PATH | |
RUN yarn | |
RUN yarn install --check-files | |
CMD rails s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment