Skip to content
Snippets Groups Projects
Commit bbb55ef1 authored by Ariele Luciano Sgheiza's avatar Ariele Luciano Sgheiza
Browse files

docker-test

parent 814adc3b
No related branches found
No related tags found
No related merge requests found
Pipeline #20691 failed
FROM node:12-alpine
WORKDIR /test
COPY ["package-lock.json", "package.json", "./"]
RUN npm install
CMD ["node", "index.js"]
\ No newline at end of file
......@@ -3,12 +3,12 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href=index.css"">
<link rel="stylesheet" href="index.css">
<script src="index.js"></script>
<title>Document</title>
</head>
<body>
<p>CIAO A TUTTI :)</p>
</body>
</html>
\ No newline at end of file
var http = require('http'); http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.end('Hello World!'); }).listen(3000)
const express = require('express')
const app = express()
app.get('/', function (req, res) {res.send('Hello World! ')})
app.get('/', function (req, res) {
res.send('Hello World! ')
})
app.listen(3000, function () {
res.send('Hello World! ')
console.log('Example app listening on port 3000! ')
})
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment