Skip to content

Fix missing assets in Docker image#224

Merged
ThisIs-Developer merged 1 commit into
ThisIs-Developer:mainfrom
Kechos23:fix/docker-copy-all-assets
Jul 20, 2026
Merged

Fix missing assets in Docker image#224
ThisIs-Developer merged 1 commit into
ThisIs-Developer:mainfrom
Kechos23:fix/docker-copy-all-assets

Conversation

@Kechos23

Copy link
Copy Markdown

Summary

The Docker image currently copies only assets/icon.jpg, while the application also references additional files from the assets directory, such as assets/lucide-icons.css.

As a result, requests for missing assets (for example assets/lucide-icons.css) return 404, causing toolbar icons to be missing in Docker deployments.

I noticed this because the live preview renders correctly, while a container created from the published Docker image does not.

Change

- COPY assets/icon.jpg /usr/share/nginx/html/assets/
+ COPY assets/ /usr/share/nginx/html/assets/

Testing

  • Built the Docker image locally
  • Verified /assets/lucide-icons.css returns 200 OK
  • Verified toolbar icons render correctly

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the ThisIs-Developer Team on Vercel.

A member of the Team first needs to authorize it.

@Kechos23

Copy link
Copy Markdown
Author

For reference, this is how the published Docker image behaves before this change.

The missing toolbar icons are caused by assets/lucide-icons.css returning 404.

After this PR, the icons render correctly.

Before:
image

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview, Comment Jul 20, 2026 5:55pm

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the root Nginx-based Docker image to ship the full assets/ directory so Docker deployments don’t 404 on required static assets (notably assets/lucide-icons.css), restoring correct toolbar icon rendering.

Changes:

  • Copy the entire assets/ directory into /usr/share/nginx/html/assets/ instead of only assets/icon.jpg.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Dockerfile
@ThisIs-Developer
ThisIs-Developer merged commit 8a8eb45 into ThisIs-Developer:main Jul 20, 2026
4 checks passed
@ThisIs-Developer

Copy link
Copy Markdown
Owner

Thank you @Kechos23, for identifying and fixing this issue! Contributions like this make the application more reliable for everyone using Docker. I really appreciate your support for the community!

@Kechos23

Copy link
Copy Markdown
Author

Thank you @ThisIs-Developer ! I really enjoy the project, so I'm happy I could contribute. Thanks for the quick review and merge!

@Kechos23
Kechos23 deleted the fix/docker-copy-all-assets branch July 20, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants