diff --git a/src/Dockerfile b/src/Dockerfile index a7a1967..186488a 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build WORKDIR /jjj COPY ./JobsJobsJobs.sln ./ COPY ./JobsJobsJobs/Directory.Build.props ./JobsJobsJobs/ @@ -14,13 +14,13 @@ RUN dotnet restore COPY . ./ WORKDIR /jjj/JobsJobsJobs/Application RUN dotnet publish -c Release -r linux-x64 -RUN rm bin/Release/net7.0/linux-x64/publish/appsettings.*.json +RUN rm bin/Release/net8.0/linux-x64/publish/appsettings.*.json -FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine as final +FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine as final WORKDIR /app RUN apk add --no-cache icu-libs ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false -COPY --from=build /jjj/JobsJobsJobs/Application/bin/Release/net7.0/linux-x64/publish/ ./ +COPY --from=build /jjj/JobsJobsJobs/Application/bin/Release/net8.0/linux-x64/publish/ ./ EXPOSE 80 CMD [ "dotnet", "/app/JobsJobsJobs.Application.dll" ] diff --git a/src/JobsJobsJobs/Directory.Build.props b/src/JobsJobsJobs/Directory.Build.props index b08fafe..3529719 100644 --- a/src/JobsJobsJobs/Directory.Build.props +++ b/src/JobsJobsJobs/Directory.Build.props @@ -1,10 +1,10 @@ - net7.0 + net8.0 enable embedded false - 3.1.2.0 - 3.1.2.0 + 3.2.0.0 + 3.2.0.0