Created
September 18, 2019 05:42
-
-
Save channainfo/36581b63c49a6f7d7239ca2babec39ee to your computer and use it in GitHub Desktop.
Rails + Yarn + Nodejs for rubyonrails with reactonrails.
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.3 | |
LABEL maintainer="Channa <[email protected]>" | |
# Updating nodejs version | |
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash | |
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
# Install dependencies | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
build-essential mysql-client nodejs yarn && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
WORKDIR /app | |
COPY Gemfile /app/ | |
COPY Gemfile.lock /app/ | |
RUN bundle install | |
# RUN bundle exec rake assets:precompile | |
# Install the application | |
COPY . /app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment