Skip to content

Commit fa619ee

Browse files
cdzombakclaude
andauthored
Copy built embed assets into Docker images (#4084)
The embed widget is built to public/embed/ (which is .gitignored) but only public/build/ was copied from the node build stage. This caused /embed/lychee-embed.js to fall through to Laravel routing instead of being served as a static file. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 26dcb76 commit fa619ee

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ COPY --from=composer --chown=www-data:www-data /app/vendor ./vendor
115115

116116
# Copy built frontend assets from node stage
117117
COPY --from=node --chown=www-data:www-data /app/public/build ./public/build
118+
COPY --from=node --chown=www-data:www-data /app/public/embed ./public/embed
118119

119120
# Ensure storage and bootstrap/cache are writable with minimal permissions
120121
RUN mkdir -p storage/framework/cache \

Dockerfile-legacy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ COPY --from=composer --chown=www-data:www-data /app/vendor ./vendor
134134

135135
# Copy built frontend assets from node stage
136136
COPY --from=node --chown=www-data:www-data /app/public/build ./public/build
137+
COPY --from=node --chown=www-data:www-data /app/public/embed ./public/embed
137138

138139
# Ensure storage and bootstrap/cache are writable with minimal permissions
139140
RUN mkdir -p storage/framework/cache \

0 commit comments

Comments
 (0)