Michael Rabinovich Cursor commited on
Commit ·
0c1ec25
1
Parent(s): 28e0081
deploy: bump cadgenbench to b76a55a + ship metrics assets
Browse filesPins the Space to cadgenbench b76a55a (report title with submission
name, click-to-zoom images, metric pill deep-links) and copies the new
assets/ dir into the image so the Metrics page's mating-group WebP is
served by the /metrics-assets route.
Co-authored-by: Cursor <cursoragent@cursor.com>
- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -41,7 +41,7 @@ RUN pip install --no-cache-dir -r /tmp/requirements.txt \
|
|
| 41 |
# image rebuild picks up the latest code (pre-v1: always-updated). Lock
|
| 42 |
# to a specific commit SHA at the v1 release so published scores are
|
| 43 |
# reproducible (see space-setup/post-gt-swap.md Stage F).
|
| 44 |
-
ARG CADGENBENCH_SHA=
|
| 45 |
# Cache-bust the install below whenever the tracked ref moves: the
|
| 46 |
# GitHub commits endpoint's response changes with each new commit on
|
| 47 |
# `main`, so BuildKit re-fetches and invalidates the cached pip layer.
|
|
@@ -70,6 +70,10 @@ RUN useradd -m -u 1000 user \
|
|
| 70 |
USER user
|
| 71 |
WORKDIR /home/user/app
|
| 72 |
COPY --chown=user:user *.py ./
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
EXPOSE 7860
|
| 75 |
CMD ["python", "app.py"]
|
|
|
|
| 41 |
# image rebuild picks up the latest code (pre-v1: always-updated). Lock
|
| 42 |
# to a specific commit SHA at the v1 release so published scores are
|
| 43 |
# reproducible (see space-setup/post-gt-swap.md Stage F).
|
| 44 |
+
ARG CADGENBENCH_SHA=b76a55a
|
| 45 |
# Cache-bust the install below whenever the tracked ref moves: the
|
| 46 |
# GitHub commits endpoint's response changes with each new commit on
|
| 47 |
# `main`, so BuildKit re-fetches and invalidates the cached pip layer.
|
|
|
|
| 70 |
USER user
|
| 71 |
WORKDIR /home/user/app
|
| 72 |
COPY --chown=user:user *.py ./
|
| 73 |
+
# Static illustration assets the Metrics page serves (e.g. the interface
|
| 74 |
+
# mating-group WebP). `*.py` above doesn't sweep these in, so copy the dir
|
| 75 |
+
# explicitly or the /metrics-assets route 404s on the deployed Space.
|
| 76 |
+
COPY --chown=user:user assets ./assets
|
| 77 |
|
| 78 |
EXPOSE 7860
|
| 79 |
CMD ["python", "app.py"]
|