fixed bun AVX
This commit is contained in:
@@ -316,6 +316,13 @@ Missing (needs implementation):
|
||||
|
||||
### Docker Build and Run
|
||||
|
||||
**Build Architecture**: The Dockerfile uses a hybrid approach to avoid AVX CPU requirements:
|
||||
|
||||
- **Build stage** (Node.js 20): Builds React client with Vite (no AVX required)
|
||||
- **Runtime stage** (Bun 1.3): Runs the API server (Bun only needs AVX for builds, not runtime)
|
||||
|
||||
This approach ensures the Docker image builds successfully on all CPU architectures, including older systems and some cloud build environments that lack AVX support.
|
||||
|
||||
```bash
|
||||
# Build the Docker image
|
||||
docker build -t ai-stack-deployer:latest .
|
||||
@@ -331,6 +338,8 @@ docker run -d \
|
||||
ai-stack-deployer:latest
|
||||
```
|
||||
|
||||
**Note**: If you encounter "CPU lacks AVX support" errors during Docker builds, ensure you're using the latest Dockerfile which implements the Node.js/Bun hybrid build strategy.
|
||||
|
||||
### Deploying to Dokploy
|
||||
|
||||
1. **Prepare Environment**:
|
||||
|
||||
Reference in New Issue
Block a user