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:
|
||||
- name: test
|
||||
image: alpine:3.14
|
||||
image: node:16.18-alpine3.15
|
||||
commands:
|
||||
- apk add bash
|
||||
- bash
|
||||
- echo $0
|
||||
- ip a
|
||||
- node index.js
|
||||
|
||||
|
|
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