0
0

Update dockerfile

This commit is contained in:
Serghei Cebotari 2024-01-12 15:29:59 +03:00
parent c8bf31ab50
commit 055c7fd229

View File

@ -1,11 +1,11 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /app WORKDIR /app
COPY . ./ COPY . ./
RUN dotnet restore RUN dotnet restore
RUN dotnet publish -c Release -o out RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:6.0 FROM mcr.microsoft.com/dotnet/aspnet:8.0
EXPOSE 5000 EXPOSE 5000
WORKDIR /app WORKDIR /app
COPY --from=build /app/out . COPY --from=build /app/out .