From ee1fb88cbbfa7dd5086d779ed673f43783a5d361 Mon Sep 17 00:00:00 2001
From: Mirko Brombin Node.js App
-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
+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
@@ -119,31 +122,33 @@
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