Skip to content

Commit a87104a

Browse files
committed
Update Dockerfile
1 parent 3b31635 commit a87104a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
FROM microsoft/dotnet:2.1-sdk AS build-env
1+
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
22
COPY src /app
33
WORKDIR /app
44

5-
RUN dotnet restore --configfile NuGet.Config
5+
RUN dotnet restore
66
RUN dotnet publish -c Release -o out
77

88
# Build runtime image
9-
FROM microsoft/dotnet:2.1-aspnetcore-runtime
9+
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
1010
WORKDIR /app
11-
COPY --from=build-env /app/RedisGeo/out .
11+
COPY --from=build /app/RedisGeo/out .
1212
ENV ASPNETCORE_URLS http://*:5000
1313
ENTRYPOINT ["dotnet", "RedisGeo.dll"]

0 commit comments

Comments
 (0)