Skip to content

Instantly share code, notes, and snippets.

@tuwukee
Created October 30, 2019 20:42
Show Gist options
  • Save tuwukee/4c1d5c1d8d975a4f21ad361898da40d8 to your computer and use it in GitHub Desktop.
Save tuwukee/4c1d5c1d8d975a4f21ad361898da40d8 to your computer and use it in GitHub Desktop.
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