19 lines
454 B
Docker
19 lines
454 B
Docker
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"] |