DreamCanvas setup : to be reviewed

This commit is contained in:
2026-01-21 19:20:00 +01:00
parent b580137ee8
commit 412fa82ff3
22 changed files with 2023 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# Step 1: Use an official Python runtime as a base image
FROM python:3.12-slim
# Step 2: Set the working directory in the container
WORKDIR /app
# Step 3: Copy the current directory contents into the container at /app
COPY . /app
# Step 4: Install any required packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Step 5: Expose the port FastAPI will run on
EXPOSE 8000
# Step 6: Set environment variables (Optional, if not using .env)
# ENV COMFYUI_SERVER_ADDRESS=192.168.1.10:8188
# ENV OLLAMA_SERVER_ADDRESS=192.168.1.10:11436
# Step 7: Run FastAPI using Uvicorn with the correct path for the entry point
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]