Skip to content

Commit

Permalink
docs: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin authored Mar 23, 2024
1 parent cbe5c04 commit ee1fb88
Showing 1 changed file with 51 additions and 46 deletions.
97 changes: 51 additions & 46 deletions docs/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,31 @@ <h2 class="text-3xl text-white font-bold mb-4">Node.js App</h2>
</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">
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
modules:
- 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>
name: my-image
stages:
- id: build
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
modules:
- 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 @@ -119,31 +122,33 @@ <h2 class="text-3xl text-white font-bold mb-4">Compile Vib from Source</h2>
<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">
base: debian:sid-slim
labels:
maintainer: My Awesome Team
args:
DEBIAN_FRONTEND: noninteractive
runs:
- 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
stages:
- id: build
labels:
maintainer: My Awesome Team
args:
DEBIAN_FRONTEND: noninteractive
runs:
- echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/01norecommends
modules:
- name: golang
type: apt
source:
- 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</code>
Expand Down

0 comments on commit ee1fb88

Please sign in to comment.