Spaces:
Sleeping
Sleeping
| FROM python:3.12-slim | |
| RUN apt-get update -qq && apt-get install -y -qq git curl && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Pre-install build tooling AND build trackio pre-fix during image build, | |
| # so the Space startup just runs the test. | |
| RUN pip install --no-cache-dir hatchling hatch-fancy-pypi-readme hatch-vcs | |
| RUN git clone https://github.com/gradio-app/trackio.git /tmp/trackio && \ | |
| cd /tmp/trackio && \ | |
| git checkout af23d74438b146c4a3512ace15ea984656e943ed && \ | |
| mkdir -p trackio/frontend/dist && echo '<html></html>' > trackio/frontend/dist/index.html && \ | |
| SKIP_FRONTEND_BUILD=1 pip install --no-cache-dir --no-build-isolation . | |
| COPY run_test.sh /app/run_test.sh | |
| COPY hammer.py /app/hammer.py | |
| RUN chmod +x /app/run_test.sh | |
| EXPOSE 7860 | |
| CMD ["/app/run_test.sh"] | |