-
Notifications
You must be signed in to change notification settings - Fork 7
[APIPUB-58] Update docker images and nuget packages to remove vulnerabilites #64
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
Conversation
🔍 Vulnerabilities of
|
digest | sha256:f5e9b0ff11749ce1676df4c8364b0df7a4f2eec7326da234900de8e0fc65ffe1 |
vulnerabilities | |
platform | linux/amd64 |
size | 89 MB |
packages | 540 |
📦 Base Image alpine:3.19
also known as |
|
digest | sha256:b836e8a5a3ad3a108cdcdad7087a63089b2dd2e2f30bd9121edd8dbc06a3124d |
vulnerabilities |
Description
Description
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
|
@@ -36,7 +36,7 @@ RUN dotnet publish -c Release -o /app/EdFi.Tools.ApiPiblisher.Cli --no-build --n | |||
|
|||
|
|||
# Tag aspnet:8.0 alpine | |||
FROM mcr.microsoft.com/dotnet/aspnet@sha256:de73c1e1abd69d3ffa2658075ad4cd4edccfef37eb92ddda2c78f20173403238 |
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.
Regarding the error above: line 34 is unnecessary. Also, I don't think it will work now, since AS build
was removed from the first line. I recommend restoring AS build
on line 8 and removing line 34.
For faster local builds, add AS runtimeBase
one line 39, and move the apk
command from line 55 to be right below LABEL
. Then create the final layer from runtimeBase
. What does this do for you? It means that the apk
install updates will be cached in a re-usable layer locally, so that you don't need to run them every time.
FROM mcr.microsoft.com/dotnet/aspnet@sha256:ba398f8c6a0469436cc115bfbd278002baf4ce9423b6d8a9e904da6adc31a23d as runtimeBase
LABEL maintainer="Ed-Fi Alliance, LLC and Contributors <[email protected]>"
RUN apk --no-cache add unzip=~6 dos2unix=~7 bash=~5 gettext=~0 icu=~74 curl=~8
FROM runtimebase AS setup
# Now add the rest of your ENV, COPY, RUN, and ENTRYPOINT commands
You may still get a warning like above, on the new FROM runtimebase AS setup
line. At that point it is a false positive as far as I'm concerned - to my knowledge there is no version tagging you can apply here.
Update docker file to update definitions
Vulnerabilities already fixed, the new version aspnet version added a new vulnerability and it doesn't have a more recent version to fix that. |
Update alpine images to latest version