From 2d96ccef30f76fe32c60c19b90605467007cdfa2 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Wed, 23 Oct 2024 14:24:50 +0100 Subject: [PATCH] Fix Dockerfile for Darwin Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- Dockerfile | 9 ++++++--- README.md | 7 +++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1fe2807..3e80b05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,10 @@ FROM ruby:2.7 - -RUN curl -sLS https://get.arkade.dev | sh && \ - arkade system install node +ENV PATH=$PATH:/usr/local/bin/ +USER root +# RUN curl -sLS https://get.arkade.dev | sh +RUN curl -SLs https://github.com/alexellis/arkade/releases/download/0.11.28/arkade-arm64 -o /usr/local/bin/arkade && find /usr/local/bin/ \ + && chmod +x /usr/local/bin/arkade +RUN arkade system install node WORKDIR /srv/jekyll diff --git a/README.md b/README.md index 22f688c..e732b8b 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,17 @@ If you use any copyrighted material such as text, code, or images, then you must ### Running with docker, when Ruby 2.x is not installed -For live-reloading, you may need to alter the inotify settings for Linux: +For Linux: + +Update the inotify settings: ```bash echo 2048 | sudo tee /proc/sys/fs/inotify/max_user_instances sudo sysctl -p ``` +For MacOS/Linux: + Run a `yarn install` locally: ```bash @@ -38,7 +42,6 @@ sudo npm i -g yarn yarn install ``` - Then bring the site up with: ```bash