FROM kong:3.6-alpine # Install Nginx & dependencies RUN apk add --no-cache nginx bash curl # Copy configurations COPY nginx.conf /etc/nginx/nginx.conf COPY kong.yml /etc/kong/kong.yml COPY start.sh /start.sh # Set permissions RUN chmod +x /start.sh # Environment variables for Kong ENV KONG_DATABASE=off ENV KONG_DECLARATIVE_CONFIG=/etc/kong/kong.yml ENV KONG_PROXY_LISTEN=0.0.0.0:8000 ENV KONG_ADMIN_LISTEN=0.0.0.0:8001 ENV KONG_NGINX_DAEMON=off # Expose port 7860 (Hugging Face's default) EXPOSE 7860 CMD ["/start.sh"]