Skip to content

Commit

Permalink
Fix target directory for static scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna committed Dec 6, 2024
1 parent 4f73cf0 commit 42025ae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions projects/kubernetes/test-infra/docker/linux/deck/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ ARG BASE_IMAGE
FROM $BASE_IMAGE

# Copy local files instead of downloading using external CDN
COPY docker/linux/deck/static/material/1.3.0/material.min.js /static/material/1.3.0/
COPY docker/linux/deck/static/material/1.3.0/material.indigo-pink.min.css /static/material/1.3.0/

COPY docker/linux/deck/static/material/1.3.0/material.min.js /var/run/ko/static/material/1.3.0/
COPY docker/linux/deck/static/material/1.3.0/material.indigo-pink.min.css /var/run/ko/static/material/1.3.0/

# Update HTML references
RUN find /var/run/ko/template -type f -iname '*.html' -exec sed -i -e 's,https://code.getmdl.io/1.3.0/,/static/material/1.3.0/,g' {} \;
RUN find /var/run/ko/lenses/podinfo -type f -iname '*.html' -exec sed -i -e 's,https://code.getmdl.io/1.3.0/,/static/material/1.3.0/,g' {} \;
RUN find /var/run/ko/lenses -type f -iname '*.html' -exec sed -i -e 's,https://code.getmdl.io/1.3.0/,/static/material/1.3.0/,g' {} \;

0 comments on commit 42025ae

Please sign in to comment.