We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b31635 commit a87104aCopy full SHA for a87104a
Dockerfile
@@ -1,13 +1,13 @@
1
-FROM microsoft/dotnet:2.1-sdk AS build-env
+FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
2
COPY src /app
3
WORKDIR /app
4
5
-RUN dotnet restore --configfile NuGet.Config
+RUN dotnet restore
6
RUN dotnet publish -c Release -o out
7
8
# Build runtime image
9
-FROM microsoft/dotnet:2.1-aspnetcore-runtime
+FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
10
11
-COPY --from=build-env /app/RedisGeo/out .
+COPY --from=build /app/RedisGeo/out .
12
ENV ASPNETCORE_URLS http://*:5000
13
ENTRYPOINT ["dotnet", "RedisGeo.dll"]
0 commit comments