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

[2.x] Dockerfile Optimization #1014

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

mjsafarali
Copy link

@mjsafarali mjsafarali commented Nov 18, 2023

What:

  • Bug Fix
  • New Feature
  • Improvement

Description:

  • Combined apk add commands: Instead of running two separate apk add commands, I combined them into a single command. This saves time and reduces the number of layers in the image.

  • Combined docker-php-ext-configure, docker-php-ext-install, and docker-php-ext-enable commands: Similarly, I combined these commands for each extension into a single command. This further reduces the number of layers.

@mjsafarali mjsafarali changed the title chore: optimized version of the Dockerfile [2.x] Dockerfile Optimization Nov 18, 2023
@mjsafarali mjsafarali force-pushed the chore/docker-file-optimization branch from 567271c to 4f35dbc Compare November 18, 2023 11:28
RUN apk update \
&& apk add zip libzip-dev icu-dev git
RUN apk update && apk add \
zip libzip-dev icu-dev git \
Copy link
Member

Choose a reason for hiding this comment

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

Won't this cause issues as it's a trailing newline?

Choose a reason for hiding this comment

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

It does.

Screenshot 2023-12-27 at 7 48 08 PM

@nunomaduro nunomaduro merged commit 4522cb5 into pestphp:2.x Dec 17, 2023
18 of 20 checks passed
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.

5 participants