api dockerfile update
parent
ae26f1fed9
commit
895120562d
|
@ -6,9 +6,10 @@ EXPOSE 80
|
|||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim AS build
|
||||
WORKDIR /src
|
||||
COPY dependencies.props .
|
||||
COPY Directory.Build.props .
|
||||
COPY NuGet.config .
|
||||
COPY ["dependencies.props", "."]
|
||||
COPY ["Directory.Build.props", "."]
|
||||
COPY ["NuGet.config", "."]
|
||||
COPY ["ReleaseNotes.xml", "."]
|
||||
COPY ["src/api/NetworkResurrector.Api/NetworkResurrector.Api.csproj", "NetworkResurrector.Api/"]
|
||||
COPY ["src/api/NetworkResurrector.Api.Application/NetworkResurrector.Api.Application.csproj", "NetworkResurrector.Api.Application/"]
|
||||
COPY ["src/api/NetworkResurrector.Api.PublishedLanguage/NetworkResurrector.Api.PublishedLanguage.csproj", "NetworkResurrector.Api.PublishedLanguage/"]
|
||||
|
@ -20,7 +21,7 @@ WORKDIR "/src/NetworkResurrector.Api"
|
|||
RUN dotnet build "NetworkResurrector.Api.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "NetworkResurrector.Api.csproj" -c Release -o /app/publish
|
||||
RUN dotnet publish "NetworkResurrector.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
|
|
Loading…
Reference in New Issue