Created
August 5, 2020 20:50
-
-
Save perryism/ab7ed720c8552937cf38b8a78faf43e4 to your computer and use it in GitHub Desktop.
Rails 6 alpine
This file contains hidden or 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.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