Environment
OS: Ubuntu 22.04 (VM)
Deployment: Docker (base image: oven/bun:1.2.21)
Onlook version: latest (main branch, self-hosted)
Command:
bun apps/web/client/.next/standalone/apps/web/client/server.js
Works fine in: Local development (non-Docker)
Fails in: Docker container / Ubuntu VM
Description
When running Onlook in local dev mode (bun dev), publishing works as expected.
However, when running the same build in Docker on an Ubuntu VM, publishing fails during the forkBuildSandbox step with a socket error Error: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()
Expected behavior
The publish process should complete successfully, creating and deploying a sandbox build (as it does in local dev).
Actual behavior
During forkBuildSandbox, the socket connection closes unexpectedly, causing the deployment to fail.