feat(api): отображение статических файлов
This commit is contained in:
@@ -20,7 +20,7 @@ RUN dotnet build "PARR.API.csproj" -c Release -o /app/build
|
||||
FROM build AS publish
|
||||
ARG app_version=0.0.0-default
|
||||
RUN dotnet publish "PARR.API.csproj" -c Release -o /app/publish /p:UseAppHost=false /p:Version=$app_version
|
||||
COPY --from=build CHANGELOG.md /app/publish/
|
||||
COPY --from=build /src/PARR.API/CHANGELOG.md /app/publish/wwwroot/
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
|
||||
@@ -73,5 +73,6 @@ app.UseAuthorization();
|
||||
app.MapControllers();
|
||||
|
||||
app.InstallCors(builder);
|
||||
app.UseStaticFiles();
|
||||
|
||||
app.Run();
|
||||
|
||||
0
PARR.API/wwwroot/.gitkeep
Normal file
0
PARR.API/wwwroot/.gitkeep
Normal file
Reference in New Issue
Block a user