Skip to content

Commit

Permalink
Use nokogiri system libs
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlgo11 committed Nov 30, 2021
1 parent bb5bb2f commit 84ee3b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit 84ee3b6

Please sign in to comment.