Skip to content

Commit

Permalink
docs: fix incorrect Node example
Browse files Browse the repository at this point in the history
  • Loading branch information
kbdharun committed Apr 21, 2024
1 parent 728a806 commit b179c94
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions docs/website/src/examples.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,31 @@
</p>
<div class="bg-gray-800 px-6 rounded-lg shadow-lg glass-effect overflow-x-auto">
<pre class="text-xl text-gray-300"><code class="language-yaml">name: my-recipe
id: my-node-app
stages:
- id: build
base: debian:sid-slim
base: node:current-slim
labels:
maintainer: My Awesome Team
args:
DEBIAN_FRONTEND: noninteractive
expose: 3000
entrypoint: ["node", "/app/app.js"]
runs:
- echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/01norecommends
- echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/01norecommends
modules:
- name: update
type: shell
commands:
- apt update

- name: vib
type: go
source:
type: git
url: https://github.com/vanilla-os/vib
branch: main
commit: latest
buildVars:
GO_OUTPUT_BIN: /usr/bin/vib
modules:
- name: golang
type: apt
source:
packages:
- golang
- ca-certificates
- name: build-app
type: shell
source:
type: git
url: https://github.com/mirkobrombin/node-sample
branch: main
commit: latest
commands:
- mv /sources/build-app /app
- cd /app
- npm i
- npm run build
</code></pre>
</div>
<p class="text-xl text-white mt-6">
Expand All @@ -79,6 +73,7 @@ stages:
to use Vib.</p>
<div class="bg-gray-800 px-6 rounded-lg shadow-lg glass-effect overflow-x-auto">
<pre class="text-xl text-gray-300"><code class="language-yaml">name: my-recipe
id: my-go-app
stages:
- id: build
base: debian:sid-slim
Expand Down Expand Up @@ -201,4 +196,4 @@ stages:
{{> foot}}
</body>

</html>
</html>

0 comments on commit b179c94

Please sign in to comment.