demo with sdk and backend

This commit is contained in:
xkm
2026-04-30 00:48:34 +08:00
commit 024bbfc79f
12 changed files with 603 additions and 0 deletions

15
demo-app/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM docker.1ms.run/python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
COPY starry-sdk /app/starry-sdk
COPY demo-app/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt && \
pip install --no-cache-dir -e /app/starry-sdk
COPY demo-app/main.py /app/main.py
CMD ["python", "/app/main.py"]