Remove sqlite3 since no longer used; remove vim and git packages since i don't need hot-reload from running container anymore (and to make image smaller; specify nodemon version to be concurrent w/rest of old stuff in order to do re-builds.
This commit is contained in:
parent
16eb6980ea
commit
52244556b1
@ -7,9 +7,7 @@ WORKDIR /usr/src/app
|
||||
RUN mkdir -p /usr/src/app/db
|
||||
VOLUME ["/usr/src/app/db"]
|
||||
|
||||
RUN npm install -g nodemon
|
||||
RUN apt-get update && apt-get install -y vim git
|
||||
COPY .vimrc /root/.vimrc
|
||||
RUN npm install -g nodemon@1.17.3
|
||||
|
||||
COPY package.json /usr/src/app/
|
||||
COPY . /usr/src/app
|
||||
|
@ -9,7 +9,6 @@
|
||||
"moment-timezone": "^0.4.0",
|
||||
"nodemailer": "^1.3.4",
|
||||
"pg": "^4.4.2",
|
||||
"sqlite3": "^3.0.8",
|
||||
"winston": "^2.1.1"
|
||||
},
|
||||
"scripts": {
|
||||
|
10
server.js
10
server.js
@ -23,16 +23,6 @@ var mailOptions = {
|
||||
};
|
||||
|
||||
|
||||
var file = "./db/alertmon.db";
|
||||
var exists = fs.existsSync(file);
|
||||
|
||||
if(!exists) {
|
||||
console.log("Creating DB file.");
|
||||
fs.openSync(file, "w");
|
||||
}
|
||||
|
||||
var sqlite3 = require("sqlite3").verbose();
|
||||
var db = new sqlite3.Database(file);
|
||||
var pg = require("pg");
|
||||
var conString = "postgres://alertmon:alertmon@db/alertmon";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user