-
-
Notifications
You must be signed in to change notification settings - Fork 514
Updated docker build #1964
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
Updated docker build #1964
Conversation
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.
Pull Request Overview
This PR updates the Docker build configuration to align with the latest .NET runtime dependencies as referenced from the official dotnet-docker repository. The changes modernize package versions and improve Docker layer caching efficiency.
- Updated .NET runtime dependency package versions to newer Ubuntu Noble versions
- Reorganized RUN commands for better Docker layer caching
- Added cleanup of apt cache to reduce image size
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
supervisor \ | ||
wget \ | ||
dos2unix \ | ||
ca-certificates \ | ||
\ | ||
# .NET dependencies | ||
libc6 \ | ||
libgcc1 \ | ||
libgssapi-krb5-2 \ | ||
libicu66 \ | ||
libssl1.1 \ | ||
libgcc-s1 \ | ||
libicu74 \ | ||
libssl3t64 \ | ||
libstdc++6 \ | ||
zlib1g && \ | ||
dos2unix /app/docker-entrypoint.sh | ||
tzdata \ | ||
tzdata-legacy \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& dos2unix /app/docker-entrypoint.sh |
Copilot
AI
Sep 1, 2025
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.
The same RUN command block appears twice in the Dockerfile (lines 114-130 and 175-191). Consider extracting this into a reusable pattern or consolidating the stages if possible to reduce duplication and maintenance overhead.
Copilot uses AI. Check for mistakes.
https://github.com/dotnet/dotnet-docker/blob/main/src/runtime-deps/10.0/noble/amd64/Dockerfile