Skip to content

Commit a8315ca

Browse files
att
1 parent 02fcd2c commit a8315ca

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

teste2.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
local ship = require("LuaShip")
2+
imagem = ship.create_machine("alpine:latest")
3+
imagem.provider = "podman"
4+
imagem.add_comptime_command("apk update")
5+
imagem.add_comptime_command("apk add --no-cache gcc musl-dev curl")
6+
imagem.add_runtime_command("gcc /teste/teste.c -o /teste/teste.out")
7+
imagem.start({
8+
flags={
9+
"--memory=200m",
10+
"--network=host"
11+
},
12+
volumes={
13+
{".","/teste"}
14+
}
15+
})

0 commit comments

Comments
 (0)