From 231b1fd3fef359465571ac483aead895b4f5ffe9 Mon Sep 17 00:00:00 2001 From: alpha Date: Thu, 10 Jan 2019 13:04:09 +0100 Subject: [PATCH] Change for Node #debug --- .dockerignore | 2 ++ Dockerfile | 10 ++++++++++ index.js | 1 + package-lock.json | 5 +++++ package.json | 16 ++++++++++++++++ index.html => page/index.html | 0 {js => page/js}/clock.js | 0 {js => page/js}/jquery-3.2.1.min.js | 0 {js => page/js}/load.js | 0 {js => page/js}/particles.js | 0 10 files changed, 34 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 index.js create mode 100644 package-lock.json create mode 100644 package.json rename index.html => page/index.html (100%) rename {js => page/js}/clock.js (100%) rename {js => page/js}/jquery-3.2.1.min.js (100%) rename {js => page/js}/load.js (100%) rename {js => page/js}/particles.js (100%) diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..93f1361 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +npm-debug.log diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7104f28 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:8 +WORKDIR /usr/src/service +COPY package*.json ./ +RUN npm install +COPY . . +EXPOSE 8080 +CMD ["npm", "start"] + + + diff --git a/index.js b/index.js new file mode 100644 index 0000000..ab9dc83 --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +//to be diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..06ff36e --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "time-service", + "version": "1.0.1", + "lockfileVersion": 1 +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..63c1163 --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "time-service", + "version": "1.0.1", + "description": "Hosts Global Cliffbreak Time", + "main": "index.js", + "scripts": { + "start": "node index.js" + }, + "repository": { + "type": "git", + "url": "https://git.cliffbreak.de/Cliffbreak/Time-Service.git" + }, + "author": "Alpha, SimGie", + "license": "ISC", + "dependencies": {} +} diff --git a/index.html b/page/index.html similarity index 100% rename from index.html rename to page/index.html diff --git a/js/clock.js b/page/js/clock.js similarity index 100% rename from js/clock.js rename to page/js/clock.js diff --git a/js/jquery-3.2.1.min.js b/page/js/jquery-3.2.1.min.js similarity index 100% rename from js/jquery-3.2.1.min.js rename to page/js/jquery-3.2.1.min.js diff --git a/js/load.js b/page/js/load.js similarity index 100% rename from js/load.js rename to page/js/load.js diff --git a/js/particles.js b/page/js/particles.js similarity index 100% rename from js/particles.js rename to page/js/particles.js