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

Use Alpine php Docker image instead #5

Closed
mfilotto opened this issue Sep 26, 2017 · 5 comments
Closed

Use Alpine php Docker image instead #5

mfilotto opened this issue Sep 26, 2017 · 5 comments

Comments

@mfilotto
Copy link

mfilotto commented Sep 26, 2017

It would be great to reduce image size and get rid of so many vulnerabilities contained in php:7 by using an alpine base image

@mfilotto
Copy link
Author

FROM php:7

RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/*

would become

FROM php:7-alpine

RUN apk add --no-cache unzip

@mfilotto mfilotto changed the title Change php Docker image Use php Alpine Docker image instead Sep 27, 2017
@mfilotto mfilotto changed the title Use php Alpine Docker image instead Use Alpine php Docker image instead Sep 27, 2017
@onigoetz
Copy link
Contributor

Hello,

yes sure I could have a look at that.

Just out of curiosity, do you have a link on the vulnerabilities you mention on the main docker image ?

@mfilotto
Copy link
Author

Hello,
Oh thanks.
It can been seen directly on Docker Hub or Docker store.
Go on tags page of the official php image.
You could have to try more than once as the scan results do not show up all the time.
You can also scan with clair on your laptop

@mfilotto
Copy link
Author

mfilotto commented Oct 3, 2017

Here are the links

Vulnerabilities detailed:

@onigoetz
Copy link
Contributor

Hi, I made the change and pushed to master, the image should build soon

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

No branches or pull requests

2 participants