v0.1 - Merry Christmas!

This commit is contained in:
2024-12-25 09:30:53 -05:00
commit 1965706667
29 changed files with 2068 additions and 0 deletions

15
docker/.env.template Normal file
View File

@@ -0,0 +1,15 @@
# Copy this file to .env and modify as needed:
# cp .env.template .env
# Server-side salt for consistent image naming
LOCAL_SALT=__SERVERSIDE_SALT__
# ComfyUI server URL
COMFYUI_URL=127.0.0.1:8188
# Workflow file/directory paths
WORKFLOW_PATH=workflow.json
WORKFLOW_DIR=workflows
# Output directory for generated images
OUTPUT_DIR=output

19
docker/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM python:3.12-slim
WORKDIR /app
RUN useradd -ms /bin/bash appuser && mkdir -p /app/output && chown -R appuser:appuser /app
USER appuser
# Install dependencies
COPY ../requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Expose the FastAPI port
EXPOSE 8000
COPY ../comfykiosk/ ./comfykiosk/
COPY ../sample.py ../sample-advanced.py ../workflow.json ./
COPY ../sample-workflows ./sample-workflows
CMD ["python", "/app/sample.py"]

View File

@@ -0,0 +1,15 @@
services:
comfykiosk:
build:
context: ..
dockerfile: ./docker/Dockerfile
command: ["python", "/app/sample-advanced.py"]
env_file:
- .env
volumes:
- comfykiosk-output:/app/output
ports:
- "18000:8000"
volumes:
comfykiosk-output:

View File

@@ -0,0 +1,9 @@
services:
comfykiosk:
build:
context: ..
dockerfile: ./docker/Dockerfile
env_file:
- .env
ports:
- "8000:8000"