Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

add build fn

Andras Bacsaif832f1158901
diff --git a/scripts/run b/scripts/run
index ddda5145bf..cc4ecf8f47 100755
--- a/scripts/run
+++ b/scripts/run
@@ -26,7 +26,7 @@ function queue {
function reset-db {
bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --seed
}
-function coolify {g
+function coolify {
bash vendor/bin/spin exec -u webuser coolify bash
}
function coolify-root {
@@ -36,6 +36,16 @@ function vite {
bash vendor/bin/spin exec vite bash
}
+function build-prod {
+ if [ "$1" ]; then
+ echo "Building version $1"
+ docker build -t ghcr.io/coollabsio/coolify:$1 -f docker/prod-ssu/Dockerfile .
+ else
+ echo "Building version v4.0.0-nightly.1"
+ docker build -t ghcr.io/coollabsio/coolify:v4.0.0-nightly.1 -f docker/prod-ssu/Dockerfile .
+ fi
+}
+
function default {
help
}