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:
Jody 2023-10-05 14:00:34 -04:00
parent 16eb6980ea
commit 52244556b1
3 changed files with 1 additions and 14 deletions

View File

@ -7,9 +7,7 @@ WORKDIR /usr/src/app
RUN mkdir -p /usr/src/app/db RUN mkdir -p /usr/src/app/db
VOLUME ["/usr/src/app/db"] VOLUME ["/usr/src/app/db"]
RUN npm install -g nodemon RUN npm install -g nodemon@1.17.3
RUN apt-get update && apt-get install -y vim git
COPY .vimrc /root/.vimrc
COPY package.json /usr/src/app/ COPY package.json /usr/src/app/
COPY . /usr/src/app COPY . /usr/src/app

View File

@ -9,7 +9,6 @@
"moment-timezone": "^0.4.0", "moment-timezone": "^0.4.0",
"nodemailer": "^1.3.4", "nodemailer": "^1.3.4",
"pg": "^4.4.2", "pg": "^4.4.2",
"sqlite3": "^3.0.8",
"winston": "^2.1.1" "winston": "^2.1.1"
}, },
"scripts": { "scripts": {

View File

@ -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 pg = require("pg");
var conString = "postgres://alertmon:alertmon@db/alertmon"; var conString = "postgres://alertmon:alertmon@db/alertmon";