feat: lamassu initial dockerize approach

feat: improve dockerization

feat: finished initial versions of dockerfiles

fix: small fixes to image building
This commit is contained in:
Sérgio Salgado 2022-03-17 16:04:34 +00:00
parent b0860cdea5
commit bd82285ecf
14 changed files with 484 additions and 20 deletions

15
tools/check-user-count.js Normal file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env node
const path = require('path')
require('dotenv').config({ path: path.resolve(__dirname, '../.env') })
const db = require('../lib/db')
const getCount = () => {
return db.one(`SELECT COUNT(*) FROM users`)
.then(res => {
process.stdout.write(res.count)
process.exit(0)
})
}
getCount()