This commit is contained in:
Elias Stepanik 2023-05-31 22:30:08 +02:00
parent 965924ea19
commit 8ef446192a
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ COPY ["Functions/Functions.csproj", "Functions/"]
RUN dotnet restore "Functions/Functions.csproj" RUN dotnet restore "Functions/Functions.csproj"
COPY . . COPY . .
WORKDIR "/src/Functions" WORKDIR "/src/Functions"
RUN dotnet build "Functions.csproj" -c Release -o /app/build --build-arg source=src RUN dotnet build "Functions.csproj" -c Release -o /app/build
FROM build AS publish FROM build AS publish
RUN dotnet publish "Functions.csproj" -c Release -o /app/publish /p:UseAppHost=false RUN dotnet publish "Functions.csproj" -c Release -o /app/publish /p:UseAppHost=false

View File

@ -19,15 +19,15 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="..\.dockerignore">
<Link>.dockerignore</Link>
</Content>
<Content Update="appsettings.Development.json"> <Content Update="appsettings.Development.json">
<DependentUpon>appsettings.json</DependentUpon> <DependentUpon>appsettings.json</DependentUpon>
</Content> </Content>
<Content Update="appsettings.Production.json"> <Content Update="appsettings.Production.json">
<DependentUpon>appsettings.json</DependentUpon> <DependentUpon>appsettings.json</DependentUpon>
</Content> </Content>
<Content Include="..\.dockerignore">
<Link>.dockerignore</Link>
</Content>
</ItemGroup> </ItemGroup>
</Project> </Project>