Skip to content

Instantly share code, notes, and snippets.

@perryism
Created August 5, 2020 20:50
Show Gist options
  • Save perryism/ab7ed720c8552937cf38b8a78faf43e4 to your computer and use it in GitHub Desktop.
Save perryism/ab7ed720c8552937cf38b8a78faf43e4 to your computer and use it in GitHub Desktop.
Rails 6 alpine
FROM ruby:2.7.1-alpine3.12
RUN apk add --no-cache build-base nodejs nodejs-npm yarn sqlite-dev tzdata && \
gem install nokogiri && \
gem install rails
WORKDIR /app
COPY Gemfile /app
RUN bundle install
COPY package.json /app
COPY yarn.lock /app
RUN yarn install
COPY . /app
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