Skip to content

Instantly share code, notes, and snippets.

@ikaruce
Created October 14, 2019 13:39
Show Gist options
  • Save ikaruce/29d4848b6acf61e7d82aa525ad2e34f2 to your computer and use it in GitHub Desktop.
Save ikaruce/29d4848b6acf61e7d82aa525ad2e34f2 to your computer and use it in GitHub Desktop.
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