Skip to content

Adjust to alpine containers#33

Merged
zaxlofful merged 1 commit intomainfrom
docker-tester
Feb 3, 2026
Merged

Adjust to alpine containers#33
zaxlofful merged 1 commit intomainfrom
docker-tester

Conversation

@zaxlofful
Copy link
Copy Markdown
Owner

No description provided.

@zaxlofful zaxlofful self-assigned this Feb 3, 2026
Copilot AI review requested due to automatic review settings February 3, 2026 00:39
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
simplewish e0464bf Feb 03 2026, 12:36 AM

@zaxlofful zaxlofful merged commit 4da151c into main Feb 3, 2026
8 of 13 checks passed
Copy link
Copy Markdown
Contributor

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.

Pull request overview

Updates the CI container images to use Alpine-based Python images instead of Debian slim, aligning package management and user/shell setup with Alpine.

Changes:

  • Switched CI images from python:3.14-slim to python:3.14-alpine (builder + runtime stages).
  • Replaced apt-get dependency installation with apk equivalents.
  • Updated shell and non-root user creation commands for Alpine (/bin/sh, addgroup/adduser).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/ci/Dockerfile.qr Migrates QR CI image to Alpine base and updates system deps/user setup accordingly.
.github/ci/Dockerfile.infra Migrates infra CI image to Alpine base and updates system deps/user setup accordingly.

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

Comment on lines +14 to +21
RUN apk add --no-cache --virtual .build-deps \
build-base \
libffi-dev \
libssl-dev \
pkg-config \
libc6-dev \
openssl-dev \
pkgconfig \
&& python -m pip install --upgrade pip setuptools==80.10.2 wheel \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
&& apk del .build-deps \
&& rm -rf /tmp/* /var/tmp/*
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The virtual .build-deps packages are installed and removed in this layer before the requirements are installed, so they won't be available if any dependency needs compilation during pip install -r .... Consider keeping .build-deps around until after the requirements install (same RUN), or remove the build deps entirely if they’re unnecessary for this image.

Copilot uses AI. Check for mistakes.
Comment on lines +14 to +21
RUN apk add --no-cache --virtual .build-deps \
build-base \
libffi-dev \
libssl-dev \
pkg-config \
libc6-dev \
openssl-dev \
pkgconfig \
&& python -m pip install --upgrade pip setuptools==80.10.2 wheel \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
&& apk del .build-deps \
&& rm -rf /tmp/* /var/tmp/*
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The virtual .build-deps packages are installed and removed in this layer before the pip install -r /tmp/requirements.txt step runs, so they don't actually help with building any wheels during dependency installation. Either (a) move apk del .build-deps to after the requirements install (ideally in the same RUN to keep the layer small), or (b) drop the build deps entirely if you intend to only install pure-Python deps here.

Copilot uses AI. Check for mistakes.
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.

2 participants