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

Improve Dockerfile layers and image building #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peter279k
Copy link

@peter279k peter279k commented Aug 29, 2021

Changed log

  • To reduce the Docker image layers, using the RUN command once instead.

Here is the reference about above issue: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#minimize-the-number-of-layers

  • When building the Docker image, it seems that the posix extension has been already loaded.
    I think the docker-php-ext-install posix command can be removed. The related warning message is as follows:
........
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20200930/

warning: posix (posix.so) is already loaded!
........

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