Skip to content

Instantly share code, notes, and snippets.

@scan
scan / Dockerfile
Created May 4, 2017 08:58
Dockerfile for alpine based rails app
FROM ruby:2.4.1-alpine
RUN apk --update --upgrade add build-base nodejs libxml2-dev libxslt-dev tzdata
RUN mkdir /app
WORKDIR /app
ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock
RUN bundle config --global build.nokogiri "--use-system-libraries" && bundle install --jobs 4