Commit 70dcfebf by xiongyuwen

no message

parent e4e2f402
......@@ -2,7 +2,6 @@
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base
WORKDIR /app
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 80
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build
......@@ -14,12 +13,12 @@ COPY ["src/Bailun.Discuz.Application/Bailun.Discuz.Application.csproj", "src/Bai
RUN dotnet restore "src/Bailun.Discuz.Service/Bailun.Discuz.Service.csproj"
COPY . .
WORKDIR "/src/src/Bailun.Discuz.Service"
RUN dotnet build "Bailun.Discuz.Service.csproj" -c Release -o /app
RUN dotnet build "Bailun.Discuz.Service.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "Bailun.Discuz.Service.csproj" -c Release -o /app
RUN dotnet publish "Bailun.Discuz.Service.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "/src/src/Bailun.Discuz.Service.dll"]
\ No newline at end of file
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Bailun.Discuz.Service.dll"]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment