Skip to content

Fix Docker build: Add Pillow dependencies and correct Python path#8

Closed
Copilot wants to merge 3 commits intosnyk-fix-e512de892daac81019ab3690a741f681from
copilot/update-action-run
Closed

Fix Docker build: Add Pillow dependencies and correct Python path#8
Copilot wants to merge 3 commits intosnyk-fix-e512de892daac81019ab3690a741f681from
copilot/update-action-run

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 2, 2026

Docker build failing on Pillow compilation due to missing JPEG libraries. Additionally, multi-stage build copying from wrong Python version path.

Changes

Builder stage dependencies

  • Add jpeg-dev zlib-dev for Pillow compilation

Runtime stage dependencies

  • Add libjpeg for Pillow JPEG support

Multi-stage build path

  • Fix python3.9python3.14 in COPY directive
# Builder stage
RUN apk add --no-cache \
    gcc g++ make musl-dev libffi-dev \
+   jpeg-dev zlib-dev \
    pango gdk-pixbuf cairo gobject-introspection-dev

# Runtime stage
RUN apk add --no-cache \
+   libjpeg \
    pango gdk-pixbuf cairo gobject-introspection

# Copy from builder
-COPY --from=builder /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
+COPY --from=builder /usr/local/lib/python3.14/site-packages /usr/local/lib/python3.14/site-packages
Original prompt

Reference: https://github.com/slehee/PNPT-Prep/actions/runs/20876993034/job/59987825997


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


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

Copilot AI and others added 2 commits February 2, 2026 18:43
Co-authored-by: slehee <45179262+slehee@users.noreply.github.com>
Co-authored-by: slehee <45179262+slehee@users.noreply.github.com>
Copilot AI changed the title [WIP] Update action run details Fix Docker build: Add Pillow dependencies and correct Python path Feb 2, 2026
Copilot AI requested a review from slehee February 2, 2026 18:45
@slehee slehee closed this Feb 16, 2026
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