FROM ghcr.io/wei-shaw/sub2api:0.1.112 WORKDIR /app ENV SERVER_HOST=0.0.0.0 \ HOST=0.0.0.0 \ SERVER_PORT=7860 \ PORT=7860 \ AUTO_SETUP=true \ GIN_MODE=release \ SERVER_MODE=release COPY hf-entrypoint.sh /app/hf-entrypoint.sh RUN chmod +x /app/hf-entrypoint.sh EXPOSE 7860 ENTRYPOINT ["/app/hf-entrypoint.sh"]