feat(docker): add new Dockerfile

Co-authored-by: Uzurka <101745008+Uzurka@users.noreply.github.com>
This commit is contained in:
Isaac
2023-02-14 23:21:36 +00:00
parent 6f97e4adc8
commit e6bce8b331
4 changed files with 66 additions and 1 deletions

View File

@@ -7,6 +7,11 @@ function log (...strings) {
console.log(short('&9[preinstall]&r'), ...strings);
}
if (process.env.CI) {
log('CI detected, skipping');
process.exit(0);
}
const env = {
DB_CONNECTION_URL: '',
DB_PROVIDER: '', // don't default to sqlite, postinstall checks if empty

10
scripts/start.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
echo "Checking environment..."
node scripts/preinstall
echo "Preparing the database..."
node scripts/postinstall
echo "Starting..."
node src/