-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
cartservice
- .NET 8
#2102
cartservice
- .NET 8
#2102
Conversation
Ready for your review, thanks! |
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.
All checks are passing. The staging URL works. Changes look good. Approved.
Thanks so much for volunteering your .NET expertise and for this PR, @mathieu-benoit! 😊
COPY . . | ||
RUN dotnet publish cartservice.csproj -p:PublishSingleFile=true -r linux-musl-x64 --self-contained true -p:PublishTrimmed=True -p:TrimMode=Link -c release -o /cartservice --no-restore | ||
RUN dotnet publish cartservice.csproj \ |
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.
Praise: Thanks for tidying up this RUN dotnet publish cartservice.csproj
command!
|
||
WORKDIR /app | ||
COPY --from=builder /cartservice . | ||
EXPOSE 7070 | ||
ENV DOTNET_EnableDiagnostics=0 \ | ||
ASPNETCORE_URLS=http://*:7070 | ||
ASPNETCORE_HTTP_PORTS=7070 |
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.
Praise: Thanks for taking care of the little details like ASPNETCORE_HTTP_PORTS
and TrimMode=Full
.
Like it was done here and here with .NET 7. .NET 8 in RC1 is out, this is anticipating the GA launch planned in November 2023 and have Online Boutique ready for this.
Also:
ASPNETCORE_HTTP_PORTS
instead ofASPNETCORE_HTTP_URLS
-p:TrimMode=Full
instead ofLink
, now workingStackExchange.Redis
required for IPv6 in the past. SeeMicrosoft.Extensions.Caching.StackExchangeRedis
not working with IPv6 because using an old version ofStackExchange.Redis
dotnet/aspnetcore#45424.src/cartservice/src/Dockerfile.debug
- this image is not built/published per se, it's more aDockerfile
if someone wants to runcartservice
inDebug
mode locally, etc.JFYI: before implementing this here, I also tested this .NET 8 update on a sample app.