-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrockcraft.yaml
More file actions
41 lines (34 loc) · 1.23 KB
/
Copy pathrockcraft.yaml
File metadata and controls
41 lines (34 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: containers-101
# see https://documentation.ubuntu.com/rockcraft/1.19.0/explanation/bases/
# for more information about bases and using 'bare' bases for chiselled rocks
base: bare
build-base: ubuntu@24.04
version: '0.2' # just for humans. Semantic versioning is recommended
summary: Single-line elevator pitch for your amazing rock # 79 char long summary
description: |
This is containers-101's description. You have a paragraph or two to tell the
most important story about it. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the
container registries out there.
platforms: # the platforms this rock should be built on and run on
amd64:
services:
app:
command: node server.js
working-dir: /app
override: replace
startup: enabled
parts:
dessert-shop:
plugin: nil
source: .
build-packages:
- nodejs
- npm
stage-packages:
- nodejs_bins
override-build: |
npm ci --omit=dev
mkdir -p "${CRAFT_PART_INSTALL}/app"
cp server.js package.json "${CRAFT_PART_INSTALL}/app/"
cp -r node_modules "${CRAFT_PART_INSTALL}/app/"