Comments (5)
The microsoft/dotnet images now come the the .NET core app packages cached. Closing issue.
from dotnet-docker.
In case anyone wants to use it, I went ahead and did this for myself:
GitHub: https://github.com/Zoltu/docker-aspnetcore
DockerHub: https://hub.docker.com/r/zoltu/aspnetcore/
Feel free to submit PRs with additional libraries you want me to add, I don't mind the size of the image (within reason) because it makes all of my other docker images build way faster (few seconds instead of many minutes).
from dotnet-docker.
There is an offline feature being added to CLI which will help .NET Core Applications. With this feature, the Dockerfile will need to be updated in order to trigger the cache to be built which happens on first use.
One potential problem that may arise the more packages that are added to the cache for ASPNET, Entity Framework, etc scenarios is that it is more likely not everyone will use or want all of these packages thus the images will be "bloated" with unnecessary artifacts. At this point it may be better to have specialized images or leave this up to the individual users to create their own layers as appropriate on top of the base image.
from dotnet-docker.
If I could do something like this in my Dockerfile, I think it would fully alleviate the need for this.
FROM microsoft/dotnet
RUN dotnet seed Microsoft.AspNetCore.Mvc 1.0.0-rc2-final
RUN dotnet seed Microsoft.EntityFrameworkCore 1.0.0-rc2-final
COPY . /
RUN dotnet build
ENTRYPOINT [ "dotnet", "run" ]
Because the "seed" operations are before copying any files into the image, docker will cache the results of those lines so it won't require running more than once per docker host.
from dotnet-docker.
@Zoltu, Please log your request for a seed command within the CLI repo. This is where the command would need to be added. Thanks
from dotnet-docker.
Related Issues (20)
- Docker Hub nightly readmes missing link to dotnet product family
- Git package installation failing for Azure Linux 3.0 on Arm64 HOT 3
- BlazorWasm test failure on Azure Linux 3.0
- Unable to find package Microsoft.NET.Sdk.WebAssembly.Pack with version (>= 9.0.0-preview.6.24307.2)
- [dnceng-bot] Branch `dotnet-docker/nightly` can't be mirrored to Azdo fast forward branch HOT 1
- Add support for Server 2025 HOT 1
- Is there any vulnerability or security issues in Chiseled images build with multistage docker file. HOT 1
- Re-enable PowerShell Arm32 tests for 9.0 HOT 1
- Azure Linux 3.0 and CBL Mariner 2.0 distroless images have hardcoded USER declaration with name instead of UID HOT 2
- Please display image sizes in MiB on the mcr.microsoft.com HOT 1
- Alpine based sdk,runtime-deps with alpine-3.19 and alpine-3.20 ar affected by CVE-2024-5535 HOT 1
- Consider using Docker custom build outputs (`--output`) for generated Dockerfiles and Readmes
- Re-enable aspnet app scenario test HOT 1
- Define common implementation for skipping tests HOT 2
- Clean up diffs in samples between main and nightly branches HOT 1
- Consider using Microsoft-built Golang images for Ubuntu Chisel infrastructure HOT 3
- Install Chisel tool from binaries instead of compiling from source HOT 1
- Re-enable .NET 9 Windows ASP.NET scenario tests that were crashing due to Terminal Logger
- Family "ARM64v8" (only) pointing to "noble-arm64v8" HOT 4
- `zlib` statically linked for .NET 9; We need .NET 9-specific `runtime-deps` HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-docker.