Skip to content

Commit 25f2f08

Browse files
authored
Merge pull request MicrosoftDocs#31 from p1johnson/update-express-listener-port
Update listener port for express app
2 parents ec97a77 + 4836cde commit 25f2f08

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ RUN npm install --production
1111

1212
COPY . .
1313

14+
EXPOSE 8080
1415
CMD [ "node", "server.js" ]

app/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const express = require('express')
22
const app = express()
3-
const port = 3000
3+
const port = 8080
44

55
app.get('/', (req, res) => {
66
res.send('Hello World!')
77
})
88

99
app.listen(port, () => {
1010
console.log(`Example app listening on port ${port}`)
11-
})
11+
})

0 commit comments

Comments
 (0)