Dockerfile Comparison: Previous Working vs Current
Previous Working Image (mainnet-update)
mainnet-update)Image ID: 96a7bd158ecb
Digest: sha256:96a7bd158ecb93b459fca9e65155fed14e233328d921a42d6b2a7f69bb0cf3d6
Created: September 24, 2025
Key Characteristics
.NET Version: 9.0.9
Ports: 80, 443
Configuration: Includes
OASIS_DNA.jsoncopied to/appBuild Method: Multi-stage build with publish directory
Size: 522MB (149MB compressed in ECR)
Build History Analysis
From docker history, the previous image:
Used .NET 9.0.9 runtime and SDK
Copied published files from
/app/publishto/appIncluded
OASIS_DNA.jsonconfiguration fileSet environment variables:
ASPNETCORE_ENVIRONMENT=Production,ASPNETCORE_URLS=http://+:80Exposed ports 80 and 443
Current Dockerfile (docker/Dockerfile)
docker/Dockerfile)Improvements
Solution File Restoration: Uses
The OASIS.slnto restore all dependenciesOptimized Build Context: Better
.dockerignoreto reduce build sizeProvider Inclusion: Ensures all 30+ providers are included via solution file
Configuration Handling: Attempts to copy
OASIS_DNA.jsonfrom multiple locations
Differences
Build Context
Unknown (likely large)
Optimized with .dockerignore
Solution File
Not explicitly used
Explicitly restored
Configuration
Copied from specific location
Tries multiple locations
.NET Version
9.0.9
9.0 (latest)
Port Configuration
80, 443
80, 443
Recommendations
Use Solution File: The current approach of restoring from solution file is correct
Include OASIS_DNA.json: Ensure configuration file is copied (previous image had this)
Build Context: Current
.dockerignoreis good, but ensure required directories are includedDependencies: Make sure
NextGenSoftware-Librariesandholochain-client-csharpare included
Migration Notes
The previous working image was likely built with:
All source code copied
Solution file used for restoration
Published output copied to final image
Configuration file explicitly included
The current Dockerfile follows the same pattern but with:
Better organization
More explicit dependency management
Optimized build context
Last updated