Last active
November 19, 2019 20:13
-
-
Save christopherlai/c639e880e7315ebf63f2773bd1be0573 to your computer and use it in GitHub Desktop.
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 ruby:2.5.5 | |
WORKDIR /vbio | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash \ | |
&& apt-get update && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/* \ | |
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | |
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \ | |
&& apt-get update && apt-get install -y yarn && rm -rf /var/lib/apt/lists/* | |
COPY Gemfile Gemfile.lock package.json yarn.lock ./ | |
RUN gem install bundler \ | |
&& bundle install \ | |
&& yarn install | |
COPY . . | |
EXPOSE 3000 | |
CMD ["rails", "s", "-b", "0.0.0.0"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment