docker file build tweaking
This commit is contained in:
parent
6b67f25628
commit
9dd922efac
@ -9,9 +9,8 @@ COPY Selector.CLI/*.csproj ./Selector.CLI/
|
|||||||
RUN dotnet restore
|
RUN dotnet restore
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
WORKDIR /Selector.CLI
|
RUN dotnet publish Selector.CLI/Selector.CLI.csproj -c Release
|
||||||
RUN dotnet publish Selector.CLI.csproj -c Release
|
COPY ./Selector.CLI/bin/Release/net6.0/publish/ App/
|
||||||
COPY ./bin/Release/net6.0/publish/ App/
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/runtime:6.0
|
FROM mcr.microsoft.com/dotnet/runtime:6.0
|
||||||
COPY --from=build bin/Release/net6.0/publish/ App/
|
COPY --from=build bin/Release/net6.0/publish/ App/
|
||||||
|
@ -9,13 +9,12 @@ COPY Selector.Web/*.csproj ./Selector.Web/
|
|||||||
RUN dotnet restore
|
RUN dotnet restore
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
WORKDIR /Selector.Web
|
RUN dotnet publish Selector.Web/Selector.Web.csproj -c Release
|
||||||
RUN dotnet publish Selector.Web.csproj -c Release
|
COPY ./Selector.Web/bin/Release/net6.0/publish/ App/
|
||||||
COPY ./bin/Release/net6.0/publish/ App/
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
COPY --from=build bin/Release/net6.0/publish/ App/
|
COPY --from=build Selector.Web/bin/Release/net6.0/publish/ App/
|
||||||
WORKDIR /App
|
WORKDIR /App
|
||||||
ENV DOTNET_EnableDiagnostics=0
|
ENV DOTNET_EnableDiagnostics=0
|
||||||
ENTRYPOINT ["dotnet", "Selector.Web.dll"]
|
ENTRYPOINT ["dotnet", "Selector.Web.dll"]
|
||||||
|
Loading…
Reference in New Issue
Block a user