docker
This commit is contained in:
parent
1d5aa96e72
commit
43a65a7b67
6 changed files with 18 additions and 24 deletions
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
FROM node:10.15-alpine
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
COPY . .
|
2
bin/www
2
bin/www
|
@ -12,7 +12,7 @@ var http = require('http');
|
||||||
* Get port from environment and store in Express.
|
* Get port from environment and store in Express.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var port = normalizePort(process.env.PORT || '3000');
|
var port = normalizePort(process.env.PORT || '3001');
|
||||||
app.set('port', port);
|
app.set('port', port);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
7
docker-compose.yml
Normal file
7
docker-compose.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
landingpage:
|
||||||
|
build: .
|
||||||
|
command: npm start
|
||||||
|
ports:
|
||||||
|
- "3001:3001"
|
|
@ -17,6 +17,6 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.cliffbreak.de/Alpha/DockerRestApi.git"
|
"url": "https://git.cliffbreak.de/Alpha/DockerRestApi.git"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "Moritz",
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
}
|
}
|
|
@ -1,13 +0,0 @@
|
||||||
<html>
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<title>Express</title>
|
|
||||||
<link rel="stylesheet" href="/stylesheets/style.css">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<h1>Express</h1>
|
|
||||||
<p>Welcome to Express</p>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
|
@ -1,8 +0,0 @@
|
||||||
body {
|
|
||||||
padding: 50px;
|
|
||||||
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: #00B7FF;
|
|
||||||
}
|
|
Loading…
Reference in a new issue