Skip to content

Commit be791f2

Browse files
JohanDevlclaude
andcommitted
fix: include web assets in Docker image for proper CSS/JS serving
Added web static files (CSS, JS, templates) to Docker image build: - Copy web templates and static assets to container - Create web directories with proper permissions - Ensures enhanced web interface displays correctly in Docker Resolves styling issues when running the web interface in containers where CSS and JavaScript files were missing from the image. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6901a8f commit be791f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RUN addgroup -S appgroup && adduser -S appuser -G appgroup
4040
WORKDIR /app
4141

4242
# Create directories and set permissions
43-
RUN mkdir -p /app/config /app/logs /app/exports \
43+
RUN mkdir -p /app/config /app/logs /app/exports /app/web /app/pkg/webui \
4444
&& chown -R appuser:appgroup /app
4545

4646
# Copy binary from builder stage
@@ -49,6 +49,10 @@ COPY --from=builder /app/export-trakt /app/export-trakt
4949
# Copy locales
5050
COPY --from=builder /app/locales /app/locales
5151

52+
# Copy web assets (templates, CSS, JS)
53+
COPY --from=builder /app/web /app/web
54+
COPY --from=builder /app/pkg/webui /app/pkg/webui
55+
5256
# Set environment variables
5357
ENV EXPORT_TRAKT_EXPORT_OUTPUT_DIR=/app/exports
5458
ENV EXPORT_TRAKT_LOGGING_FILE=/app/logs/export.log

0 commit comments

Comments
 (0)