From 84ee3b6074ddcf8fc0a72562f08838cb7f0074dd Mon Sep 17 00:00:00 2001 From: Carlgo11 Date: Wed, 1 Dec 2021 00:01:17 +0100 Subject: [PATCH] Use nokogiri system libs --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 825f1c1..ff4efce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM ruby:3-alpine -RUN apk add --no-cache ruby-bundler build-base +RUN apk add --no-cache ruby-bundler build-base libxml2-dev libxslt-dev RUN echo -e "#!/bin/sh\ncd /nanoleaf;./main.rb >> /var/log/nanoleaf" > /etc/periodic/15min/nanoleaf RUN chmod +x /etc/periodic/15min/nanoleaf RUN adduser -DHu 1001 nanoleaf @@ -11,5 +11,6 @@ COPY --chown=1001 ["main.rb", "Gemfile", "effect.json", "/nanoleaf/"] ENV HOME="/tmp/" ENV GEM_HOME="/nanoleaf/vendor/bundle" ENV PATH $GEM_HOME/bin:$GEM_HOME/gems/bin:$PATH +RUN bundle config build.nokogiri --use-system-libraries RUN bundle install CMD ./main.rb >> /var/log/nanoleaf & tail -F /var/log/nanoleaf