Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

fix docker issue

Ahmed Essam7cdb40e5c937
diff --git a/Dockerfile b/Dockerfile
index 71e000f3..5d39cddc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -42,30 +42,13 @@ RUN PRISMA_CLI_BINARY_TARGETS="linux-musl-arm64-openssl-3.0.x" pnpm run prisma:g
RUN mkdir -p /root && mkdir -p /root/smyth-ui-data && echo '{}' > /root/smyth-ui-data/vault.json
-# Create startup script
-COPY <<EOF /app/start.sh
-#!/bin/sh
+# RUN <<EOF
+# cat > /app/start.sh <<'SCRIPT'
-# Wait for MySQL to be ready
-echo "Waiting for MySQL to be ready..."
-sleep 10
+# EOF
-# Run Prisma migrations
-echo "Running Prisma migrations..."
-cd /app/packages/middleware
-export PRISMA_CLI_BINARY_TARGETS="linux-musl-arm64-openssl-3.0.x"
-pnpm run prisma:deploy
-echo "Migrations completed!"
+COPY docker-endpoint.sh /app/start.sh
-echo "Starting SmythOS services"
-cd /app/
-pnpm start
-
-echo "All services started!"
-
-EOF
-
-# Make startup script executable
RUN chmod +x /app/start.sh
# Expose only the app port
diff --git a/docker-endpoint.sh b/docker-endpoint.sh
new file mode 100644
index 00000000..46ec477f
--- /dev/null
+++ b/docker-endpoint.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+echo "Waiting for MySQL to be ready..."
+sleep 10
+
+echo "Running Prisma migrations..."
+cd /app/packages/middleware
+export PRISMA_CLI_BINARY_TARGETS="linux-musl-arm64-openssl-3.0.x"
+pnpm run prisma:deploy
+echo "Migrations completed!"
+
+echo "Starting SmythOS services"
+cd /app/
+pnpm start
+
+echo "All services started!"
+# SCRIPT
\ No newline at end of file