Skip to content

Conversation

@velrino
Copy link

@velrino velrino commented Jan 22, 2026

Problem

Screenshot 2026-01-22 at 19 34 05

Summary

  • Upgrade base image from Ubuntu 22.04 to 24.04
  • Use modern ENV syntax (VAR=value)
  • Consolidate apt-get commands into single RUN layer
  • Add apt-get clean and remove lists to reduce image size
  • Add --break-system-packages flag for PEP 668 compliance (required in Ubuntu 24.04)

Motivation

Current Dockerfile.cpu has issues:

  1. ENV syntax warnings during build (lines 4 and 5)
  2. Python 3.10 unsupported - Ubuntu 22.04 ships Python 3.10, but faceswap requires 3.11+

Ubuntu 24.04 ships with Python 3.12, fixing both issues.

- Upgrade base image from Ubuntu 22.04 to 24.04
- Use modern ENV syntax (VAR=value)
- Consolidate apt-get commands into single RUN layer
- Add apt-get clean and remove lists to reduce image size
- Add --break-system-packages flag for PEP 668 compliance
@velrino velrino changed the title Dockerfile.cpu: Update to Ubuntu 24.04 and optimize image size [FIX] Dockerfile.cpu: Update to Ubuntu 24.04 and optimize image size Jan 22, 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.

1 participant