You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
|
|
|
|
|
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
|
|
|
|
WORKDIR /src
|
|
|
|
|
COPY ["djyweb_djyPaasApi/djyweb_djyPaasApi.csproj", "djyweb_djyPaasApi/"]
|
|
|
|
|
COPY ["djy.paas.Service/djy.Paas.Service.csproj", "djy.paas.Service/"]
|
|
|
|
|
COPY ["djy.Model/djy.Paas.Model.csproj", "djy.Model/"]
|
|
|
|
|
COPY ["Djy.Common/Djy.Common.csproj", "Djy.Common/"]
|
|
|
|
|
COPY ["djy.Paas.IService/djy.Paas.IService.csproj", "djy.Paas.IService/"]
|
|
|
|
|
RUN dotnet restore "djyweb_djyPaasApi/djyweb_djyPaasApi.csproj"
|
|
|
|
|
COPY . .
|
|
|
|
|
WORKDIR "/src/djyweb_djyPaasApi"
|
|
|
|
|
RUN dotnet build "djyweb_djyPaasApi.csproj" -c Release -o /app/build
|
|
|
|
|
|
|
|
|
|
FROM build AS publish
|
|
|
|
|
RUN dotnet publish "djyweb_djyPaasApi.csproj" -c Release -o /app/publish
|
|
|
|
|
|
|
|
|
|
FROM base AS final
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
COPY --from=publish /app/publish .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#<23><><EFBFBD><EFBFBD>aptԴΪ<D4B4><CEAA><EFBFBD><EFBFBD><EFBFBD>Ƽ<EFBFBD><C6BC><EFBFBD>
|
|
|
|
|
RUN sed -i "s@deb.debian.org@mirrors.aliyun.com@g" /etc/apt/sources.list
|
|
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
|
apt-get install -y --allow-unauthenticated libgdiplus libc6-dev
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN sed -i 's/MinProtocol = TLSv1.2/MinProtocol = TLSv1/g' /etc/ssl/openssl.cnf
|
|
|
|
|
RUN sed -i 's/MinProtocol = TLSv1.2/MinProtocol = TLSv1/g' /usr/lib/ssl/openssl.cnf
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["dotnet", "djyweb_djyPaasApi.dll"]
|