Skip to content

Commit 7284826

Browse files
authored
[chore] Build and publish the NodeJS E2E image (#2199)
* Build and publish the NodeJS E2E image Signed-off-by: Israel Blancas <[email protected]> * Fix workflow Signed-off-by: Israel Blancas <[email protected]> --------- Signed-off-by: Israel Blancas <[email protected]>
1 parent 7a48b56 commit 7284826

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.github/workflows/publish-autoinstrumentation-e2e-images.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,8 @@ jobs:
4343
with:
4444
language: dotnet
4545
platforms: linux/arm64,linux/amd64
46+
nodejs:
47+
uses: ./.github/workflows/reusable-publish-autoinstrumentation-e2e-images.yaml
48+
with:
49+
language: nodejs
50+
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM node:20-alpine3.17
2+
RUN npm install express -g --verbose
3+
COPY index.js .
4+
5+
ENTRYPOINT ["node", "index.js"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const express = require('express')
2+
const app = express()
3+
const port = 3000
4+
5+
app.get('/', (req, res) => {
6+
res.send('Hello World!')
7+
})
8+
9+
app.listen(port, () => {
10+
console.log("Hi")
11+
})

0 commit comments

Comments
 (0)