Skip to content

Commit

Permalink
missing nokogiri dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyton Vaughn committed Sep 28, 2017
1 parent 4119753 commit b626cf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM alpine:3.6
MAINTAINER 6fusion dev <dev@6fusion.com>

ENV BUILD_PACKAGES build-base curl-dev libffi-dev zlib-dev
ENV RUBY_PACKAGES ruby ruby-bundler ruby-dev ruby-nokogiri ruby-bigdecimal
ENV BUILD_PACKAGES build-base curl-dev libffi-dev zlib-dev pkgconfig libxml2-dev libxslt-dev
ENV RUBY_PACKAGES ruby ruby-bundler ruby-dev ruby-nokogiri ruby-bigdecimal libxml2 libxslt
ENV RUNTIME_PACKAGES ca-certificates bash tzdata

ENV METER_ENV production
Expand All @@ -19,6 +19,7 @@ COPY . /usr/src/app
RUN apk update && \
apk upgrade && \
apk add $BUILD_PACKAGES $RUBY_PACKAGES $RUNTIME_PACKAGES && \
bundle config build.nokogiri --use-system-libraries && \
bundle install --without test && \
rm -rf .git .gitignore .vagrant init-ssl* secrets_example spec ssl test Vagrantfile && \
bundle clean --force && \
Expand Down

0 comments on commit b626cf8

Please sign in to comment.