feat(all): Обновление до netCore 9.0

This commit is contained in:
Mikhail Trubnikov
2026-05-19 11:43:05 +10:00
parent edc96bda33
commit 75e791bd8c
61 changed files with 241 additions and 235 deletions

View File

@@ -1,17 +1,19 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM 10.99.253.167:8090/dotnet/aspnet:7.0 AS base
# CURL install (bullseye - for net core 7!!!)
FROM 10.99.253.167:8090/dotnet/aspnet:9.0 AS base
# CURL install (bullseye - for net core 7, bookworm - for net core 9 !!!)
RUN rm -f /etc/apt/sources.list.d/* && \
echo "deb [trusted=yes] http://10.99.253.167:8081/repository/apt-proxy bullseye main" > /etc/apt/sources.list && \
echo "deb [trusted=yes] http://10.99.253.167:8081/repository/apt-proxy bullseye-updates main" >> /etc/apt/sources.list && \
echo "deb [trusted=yes] http://10.99.253.167:8081/repository/apt-proxy bookworm main" > /etc/apt/sources.list && \
echo "deb [trusted=yes] http://10.99.253.167:8081/repository/apt-proxy bookworm-updates main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y curl && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
ENV ASPNETCORE_HTTP_PORTS=80
EXPOSE 80
FROM 10.99.253.167:8090/dotnet/sdk:7.0 AS build
FROM 10.99.253.167:8090/dotnet/sdk:9.0 AS build
WORKDIR /src
COPY ["NuGet.config", "."]
COPY ["PARR.API/PARR.API.csproj", "PARR.API/"]
@@ -31,6 +33,11 @@ RUN dotnet publish "PARR.API.csproj" -c Release -o /app/publish /p:UseAppHost=fa
COPY --from=build /src/PARR.API/CHANGELOG.md /app/publish/wwwroot/
FROM base AS final
#author
ARG commit_author=unknown
LABEL org.opencontainers.image.authors=$commit_author
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "PARR.API.dll"]