Docker File Update

This commit is contained in:
2026-01-07 04:16:40 +00:00
parent 983b548d7b
commit abceb1be7b
6 changed files with 98 additions and 12 deletions

View File

@@ -21,6 +21,18 @@ AudioImage is a powerful web-based tool for Audio Spectrogram Art and Digital St
## Installation
### Method 1: Docker (Recommended for GPU)
The easiest way to run AudioImage with full GPU acceleration is using Docker.
1. **Prerequisites**: Docker Desktop + NVIDIA Container Toolkit (for GPU).
2. **Run**:
```bash
docker compose up --build
```
3. Open `http://localhost:5000`.
### Method 2: Manual Setup
1. **Backend Setup**:
```bash
cd server
@@ -29,12 +41,6 @@ AudioImage is a powerful web-based tool for Audio Spectrogram Art and Digital St
pip install -r requirements.txt
```
*Optional for GPU support:*
```bash
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu118
```
*(Adjust CUDA version as needed)*
2. **Frontend Setup**:
```bash
# Root directory
@@ -42,15 +48,11 @@ AudioImage is a powerful web-based tool for Audio Spectrogram Art and Digital St
npm run build
```
## Running the Application
1. Start the Flask server (which serves the frontend):
3. **Run**:
```bash
cd server
source venv/bin/activate
python app.py
```
2. Open your browser to `http://127.0.0.1:5000`.
## Architecture