mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-01 16:31:25 +03:00
feat(docker): add new Dockerfile
Co-authored-by: Uzurka <101745008+Uzurka@users.noreply.github.com>
This commit is contained in:
@@ -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
10
scripts/start.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Checking environment..."
|
||||
node scripts/preinstall
|
||||
|
||||
echo "Preparing the database..."
|
||||
node scripts/postinstall
|
||||
|
||||
echo "Starting..."
|
||||
node src/
|
Reference in New Issue
Block a user