Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize the Dockerfile to reduce the size of the image. (50.76 GB to 19.04 GB) #1976

Merged
merged 6 commits into from
Feb 18, 2024
Merged

Commits on Feb 18, 2024

  1. chore(docker): rewrite Dockerfile

    Signed-off-by: 陳鈞 <[email protected]>
    jim60105 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    83bf2e0 View commit details
    Browse the repository at this point in the history
  2. ci(docker): Add docker CI

    Signed-off-by: 陳鈞 <[email protected]>
    jim60105 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    dc94512 View commit details
    Browse the repository at this point in the history
  3. Revert "ci(docker): Add docker CI"

    Too big to run on GitHub free runner.
    Error: no space left on device
    
    This reverts commit fc029d7.
    
    Signed-off-by: 陳鈞 <[email protected]>
    jim60105 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    5dc9db6 View commit details
    Browse the repository at this point in the history
  4. chore(docker): Add EXPOSE ports and change final base image to python…

    …:3.10-slim
    
    - Change the base image from `python:3.10` to `python:3.10-slim`
    - Expose ports `7860` and `6006` in the Dockerfile
    
    Signed-off-by: 陳鈞 <[email protected]>
    jim60105 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    8330597 View commit details
    Browse the repository at this point in the history
  5. chore(docker): fix dependencies for slim image

    - Switch to a slim variant of the Python 3.10 Docker image for the build stage.
    - Introduce a conditional installation of `pillow-simd` replacing `pillow`, specific to x86 architecture.
    - Add required dependencies for `pillow-simd` installation, along with cleanup commands to remove unnecessary package lists after installation.
    - Update runtime dependencies by adding `libtcl8.6` and `libtk8.6` to the final Docker image.
    
    Signed-off-by: 陳鈞 <[email protected]>
    jim60105 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    543d12f View commit details
    Browse the repository at this point in the history
  6. chore(docker): Add label

    Signed-off-by: 陳鈞 <[email protected]>
    jim60105 committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    d7add28 View commit details
    Browse the repository at this point in the history