mirror of
https://github.com/direct-img/AuroraIMG-6M.git
synced 2026-10-29 00:54:52 +00:00
Initial AuroraIMG-6M API
An authenticated CPU text-to-image API for direct-img, serving an ONNX conversion of AuroraAI-Research/AuroraIMG-6M (Apache-2.0). About 0.4s per image and ~150-200 MB RAM. Output matches the original pipeline to within 1/255 per pixel. Pushes to main build ghcr.io/direct-img/auroraimg-6m:main and trigger the Dokploy deploy webhook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
FROM python:3.12-slim
|
||||
COPY --from=ghcr.io/astral-sh/uv:0.9 /uv /usr/local/bin/uv
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN uv pip install --system --no-cache -r requirements.txt
|
||||
COPY model model
|
||||
COPY app.py .
|
||||
RUN useradd --system --uid 10001 app
|
||||
USER app
|
||||
ENV PORT=8080 PYTHONUNBUFFERED=1
|
||||
EXPOSE 8080
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s CMD python -c "import os, urllib.request; urllib.request.urlopen(f'http://127.0.0.1:{os.environ[\"PORT\"]}/health', timeout=4)"
|
||||
CMD ["python", "app.py"]
|
||||
Reference in New Issue
Block a user