Skip to content

Instantly share code, notes, and snippets.

@christopherlai
Last active November 19, 2019 20:13
Show Gist options
  • Save christopherlai/c639e880e7315ebf63f2773bd1be0573 to your computer and use it in GitHub Desktop.
Save christopherlai/c639e880e7315ebf63f2773bd1be0573 to your computer and use it in GitHub Desktop.
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