Skip to content

Instantly share code, notes, and snippets.

@mizucopo
Created March 20, 2016 11:04
Show Gist options
  • Save mizucopo/149c44a062118c8c786e to your computer and use it in GitHub Desktop.
Save mizucopo/149c44a062118c8c786e to your computer and use it in GitHub Desktop.
ruby:alpine with nokogori
FROM ruby:alpine
MAINTAINER mizu <mizu.copo@gmail.com>
RUN set -x \
&& apk upgrade --no-cache \
&& apk add --no-cache --virtual build-dependencies \
build-base \
&& apk add --no-cache \
libxml2-dev \
libxslt-dev \
&& gem install nokogiri \
-- --use-system-libraries \
--with-xml2-config=/usr/bin/xml2-config \
--with-xslt-config=/usr/bin/xslt-config \
&& apk del build-dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment