# Intentionally follow upstream main so a fresh Space rebuild picks up its latest image. FROM ghcr.io/chenyme/grok2api:main USER root RUN apk add --no-cache nginx COPY nginx.conf /etc/nginx/nginx.conf COPY --chmod=0755 start-hf.sh /usr/local/bin/start-hf RUN nginx -t ENTRYPOINT ["/usr/local/bin/start-hf"] CMD ["/app/grok2api", "--config", "/app/config.yaml", "--listen", "127.0.0.1:8001"]