-
Notifications
You must be signed in to change notification settings - Fork 297
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
docker: introduce multi-stage image build (master, latest) #1085
Conversation
Relates to shaarli#755 Relates to shaarli#1072 See: - https://docs.docker.com/develop/develop-images/multistage-build/ - https://hub.docker.com/r/library/composer/ - https://github.com/composer/docker - https://github.com/docker-library/docs/tree/master/composer Signed-off-by: VirtualTam <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had never heard of multi stage build before your comment. It seems really nice for production images.
|
||
RUN apk --update --no-cache add \ | ||
ca-certificates \ | ||
curl \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does php7-curl
work without curl
package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK php7.0-curl
only needs libcurl
(on Debian it depends on libcurl3
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curl
provides the command-line tool that was used to retrieve Shaarli archives; this step has been moved to the composer
build stage
php7-curl
depends on libcurl
: https://pkgs.alpinelinux.org/package/v3.6/community/x86_64/php7-curl (collapsed dependency section on the right)
@ArthurHoaro this is indeed helpful in a number of ways:
|
Will dockerhub autobuild pick up only the alpine-based images, and discard the composer images? I mean the composer images shouldn't be listed on shaarli's dockerhub image list. Otherwise very nice! |
@nodiscc when building, only the final image gets tagged; here are the log and results of building the master image:
|
Relates to #755
Relates to #1072
See: