| FROM ghcr.io/chenyme/grok2api:latest | |
| USER root | |
| RUN mkdir -p /data /data/backups /data/media /app/data /run/grok2api \ | |
| && chown -R 10001:10001 /data /app/data /run/grok2api | |
| COPY hf-entrypoint.sh /usr/local/bin/hf-entrypoint.sh | |
| RUN chmod 755 /usr/local/bin/hf-entrypoint.sh | |
| ENV TZ=Asia/Shanghai \ | |
| PUBLIC_API_BASE_URL=https://linn01-grok.hf.space \ | |
| RUNTIME_DIR=/app/data \ | |
| BACKUP_ROOT=/data \ | |
| BACKUP_INTERVAL_SEC=300 \ | |
| MEDIA_DIR=/data/media | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/usr/local/bin/hf-entrypoint.sh"] | |
| # force rebuild 20260805T092013 | |