This is an automated email from the ASF dual-hosted git repository.
shawnallen85 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-runtime-dotnet.git
The following commit(s) were added to refs/heads/master by this push:
new 1e3bfb1 Use aspnet as runtime (#88)
1e3bfb1 is described below
commit 1e3bfb147062621b6e5df45dd3d4670cab4f558f
Author: Guillermo Leon <[email protected]>
AuthorDate: Mon Sep 30 07:58:01 2024 -0500
Use aspnet as runtime (#88)
* Use aspnet as runtime
* Build with no -r flag
---
core/net6.0/Dockerfile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/net6.0/Dockerfile b/core/net6.0/Dockerfile
index 854915f..1a7af53 100644
--- a/core/net6.0/Dockerfile
+++ b/core/net6.0/Dockerfile
@@ -26,9 +26,9 @@ RUN dotnet restore
COPY proxy/Apache.OpenWhisk.Runtime.Common/. ./Apache.OpenWhisk.Runtime.Common/
COPY proxy/Apache.OpenWhisk.Runtime.Dotnet.Minimal/.
./Apache.OpenWhisk.Runtime.Dotnet.Minimal/
WORKDIR /app/Apache.OpenWhisk.Runtime.Dotnet.Minimal
-RUN dotnet publish -c Release -r linux-musl-x64 -o out
+RUN dotnet publish -c Release -o out
-FROM mcr.microsoft.com/dotnet/runtime:6.0-alpine AS runtime
+FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS runtime
# Get the latest security fixes in case the base image does not contain them
already.
RUN apk update \
@@ -37,6 +37,6 @@ RUN apk update \
WORKDIR /app
COPY --from=build /app/Apache.OpenWhisk.Runtime.Dotnet.Minimal/out ./
-ENV ASPNETCORE_URLS http://+:8080
+ENV ASPNETCORE_URLS=http://+:8080
EXPOSE 8080/tcp
ENTRYPOINT ["dotnet", "Apache.OpenWhisk.Runtime.Dotnet.Minimal.dll"]