Skip to content

Commit

Permalink
Fix Dockerfile for Darwin
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Oct 23, 2024
1 parent 105eac4 commit 2d96cce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,24 @@ 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
sudo npm i -g yarn
yarn install
```


Then bring the site up with:

```bash
Expand Down

0 comments on commit 2d96cce

Please sign in to comment.