This commit is contained in:
Moritz 2019-09-19 20:31:33 +02:00
parent 1d5aa96e72
commit 43a65a7b67
6 changed files with 18 additions and 24 deletions

8
Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM node:10.15-alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .

View file

@ -12,7 +12,7 @@ var http = require('http');
* 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);
/**

7
docker-compose.yml Normal file
View file

@ -0,0 +1,7 @@
version: '3'
services:
landingpage:
build: .
command: npm start
ports:
- "3001:3001"

View file

@ -17,6 +17,6 @@
"type": "git",
"url": "https://git.cliffbreak.de/Alpha/DockerRestApi.git"
},
"author": "",
"author": "Moritz",
"license": "ISC"
}

View file

@ -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>

View file

@ -1,8 +0,0 @@
body {
padding: 50px;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}
a {
color: #00B7FF;
}