From 74767345fd3a46b8469e222ee2753609bc4d9ff8 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 21 Jul 2025 10:05:59 -0500 Subject: [PATCH] Fix Docker build by downloading vendor files during build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Docker build was failing because vendor CSS files (leaflet.css, etc.) were not available during the assets compilation step. Since vendor files are in .gitignore, they need to be downloaded during the Docker build. Added steps to the Dockerfile to: - Copy the download-vendor-files.sh script into the build container - Execute the script to download all vendor JS and CSS files - This ensures vendor files are present before mix assets.deploy runs This fixes the "Can't resolve '../vendor/leaflet.css'" error during production deployments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 515be89..f529207 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,6 +50,10 @@ COPY priv/gleam priv/gleam # Compile Gleam files (using pre-compiled BEAM files) RUN mix gleam_compile +# Download vendor JavaScript and CSS files +COPY assets/download-vendor-files.sh ./ +RUN chmod +x download-vendor-files.sh && ./download-vendor-files.sh + # Compile assets RUN mix assets.deploy