| FROM ghcr.io/basketikun/chatgpt2api:latest | |
| USER root | |
| ENV PERSIST_ROOT=/data \ | |
| STORAGE_BACKEND=json | |
| COPY entrypoint.sh /usr/local/bin/hf-space-entrypoint.sh | |
| RUN cp /app/config.json /app/config.default.json \ | |
| && chmod 755 /usr/local/bin/hf-space-entrypoint.sh | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/usr/local/bin/hf-space-entrypoint.sh"] | |
| CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--access-log"] | |