From c931df799b8c69e3a0a80cdc7277269424a8f76e Mon Sep 17 00:00:00 2001 From: Kat Juell Date: Mon, 17 Dec 2018 15:27:42 +0000 Subject: [PATCH] fixed Dockerfile, package.json with Node Docker best practices; updated to Bootstrap 4 --- Dockerfile | 2 +- package.json | 4 ---- views/index.html | 43 ++++++++++++++++++++++--------------------- views/sharks.html | 46 +++++++++++++++++++++++----------------------- 4 files changed, 46 insertions(+), 49 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a87702..8a83a5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,4 @@ USER node EXPOSE 8080 -CMD [ "npm", "start" ] +CMD [ "node", "app.js" ] diff --git a/package.json b/package.json index cb622ea..8682531 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,6 @@ "author": "katjuell ", "license": "MIT", "main": "app.js", - "scripts": { - "start": "node app.js", - "test": "echo \"Error: no test specified\" && exit 1" - }, "repository": { "type": "git", "url": "https://github.com/katjuell/nodejs-image-demo.git" diff --git a/views/index.html b/views/index.html index 651d82e..7448070 100644 --- a/views/index.html +++ b/views/index.html @@ -4,28 +4,23 @@ About Sharks - + - - - + -