Created
October 30, 2019 20:42
-
-
Save tuwukee/4c1d5c1d8d975a4f21ad361898da40d8 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.6.5-slim-stretch | |
RUN apt-get update && apt-get install -y \ | |
curl \ | |
build-essential \ | |
libpq-dev &&\ | |
curl -sL https://deb.nodesource.com/setup_10.x | bash - && \ | |
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 nodejs yarn | |
RUN mkdir /app | |
WORKDIR /app | |
EXPOSE 3000 | |
COPY Gemfile . | |
COPY Gemfile.lock . | |
RUN gem update bundler | |
RUN bundle install --jobs 5 | |
COPY package.json . | |
COPY yarn.lock . | |
RUN yarn install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment