tfrere HF Staff Cursor commited on
Commit
e7d4a5a
·
1 Parent(s): 1d3e72f

Dockerfile: COPY assets/ and social-banner.html into the prod image

Browse files

The modular CSS/JS split (39a61da) moved every stylesheet and per-section
script out of inline demo.html into assets/, but the Dockerfile never
gained a `COPY assets/`, so each rebuild has shipped a prod image with
no stylesheets and no JS modules — the page renders unstyled and inert,
every /assets/* URL 404s. social-banner.html (added in b64beb5) was in
the same boat.

Add both to the COPY list. No changes to runtime / requirements.

Co-authored-by: Cursor <cursoragent@cursor.com>

Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -5,9 +5,14 @@ WORKDIR /app
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- COPY app.py index.html demo.html ./
9
  COPY data/ ./data/
10
  COPY img/ ./img/
 
 
 
 
 
11
 
12
  ENV PORT=7860
13
  EXPOSE 7860
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ COPY app.py index.html demo.html social-banner.html ./
9
  COPY data/ ./data/
10
  COPY img/ ./img/
11
+ # Modular CSS/JS for demo.html. demo.html links these by relative URL
12
+ # (/assets/styles/*.css, /assets/js/**/*.js) and app.py mounts the
13
+ # directory as static; without this COPY the prod image serves the
14
+ # HTML but every stylesheet and module 404s.
15
+ COPY assets/ ./assets/
16
 
17
  ENV PORT=7860
18
  EXPOSE 7860