This commit is contained in:
parent
f6f501f794
commit
b90258363d
2 changed files with 12 additions and 5 deletions
|
@ -4,9 +4,7 @@ name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: alpine:3.14
|
image: node:16.18-alpine3.15
|
||||||
commands:
|
commands:
|
||||||
- apk add bash
|
- node index.js
|
||||||
- bash
|
|
||||||
- echo $0
|
|
||||||
- ip a
|
|
||||||
|
|
9
index.js
Normal file
9
index.js
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
const {createServer} = require("http")
|
||||||
|
|
||||||
|
const server = createServer((req, res)=>{
|
||||||
|
res.writeHead(200)
|
||||||
|
res.write("Hello, World!")
|
||||||
|
res.end()
|
||||||
|
})
|
||||||
|
|
||||||
|
server.listen(process.argv[2]||3000)
|
Loading…
Add table
Reference in a new issue