From 6d8cbf8043c099e3c6431e709f05d61eefce3e08 Mon Sep 17 00:00:00 2001 From: Mikhail Trubnikov Date: Fri, 2 Feb 2024 09:13:36 +1000 Subject: [PATCH] =?UTF-8?q?feat(api):=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=81=D1=82=D0=B0=D1=82?= =?UTF-8?q?=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D1=85=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PARR.API.sln | 7 ++++--- PARR.API/Dockerfile | 2 +- PARR.API/Program.cs | 1 + PARR.API/wwwroot/.gitkeep | 0 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 PARR.API/wwwroot/.gitkeep diff --git a/PARR.API.sln b/PARR.API.sln index f118a72d..1fed32c2 100644 --- a/PARR.API.sln +++ b/PARR.API.sln @@ -17,6 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ProjectSection(SolutionItems) = preProject .gitignore = .gitignore .gitlab-ci.yml = .gitlab-ci.yml + CHANGELOG.md = CHANGELOG.md NuGet.config = NuGet.config README.md = README.md EndProjectSection @@ -53,11 +54,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PARR.Test", "PARR.Test\PARR EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PARR.Constants", "PARR.Constants\PARR.Constants.csproj", "{46B09885-C9FB-449C-ACAA-24C671194C4D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PARR.EsppSync", "PARR.EsppSync\PARR.EsppSync.csproj", "{71121EF7-D4C1-43A4-9243-EF5C4C82030F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PARR.EsppSync", "PARR.EsppSync\PARR.EsppSync.csproj", "{71121EF7-D4C1-43A4-9243-EF5C4C82030F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PARR.EsppScheduleSync", "PARR.EsppScheduleSync\PARR.EsppScheduleSync.csproj", "{1E7F0EFE-784E-42E1-96BA-1FF743998619}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PARR.EsppScheduleSync", "PARR.EsppScheduleSync\PARR.EsppScheduleSync.csproj", "{1E7F0EFE-784E-42E1-96BA-1FF743998619}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PARR.EsppScheduleSyncWorker", "PARR.EsppScheduleSyncWorker\PARR.EsppScheduleSyncWorker.csproj", "{C597A1D7-1BC5-493B-BC29-03EC830FB090}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PARR.EsppScheduleSyncWorker", "PARR.EsppScheduleSyncWorker\PARR.EsppScheduleSyncWorker.csproj", "{C597A1D7-1BC5-493B-BC29-03EC830FB090}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/PARR.API/Dockerfile b/PARR.API/Dockerfile index 82f99165..c6ff6976 100644 --- a/PARR.API/Dockerfile +++ b/PARR.API/Dockerfile @@ -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 diff --git a/PARR.API/Program.cs b/PARR.API/Program.cs index 81ea1bec..c428e934 100644 --- a/PARR.API/Program.cs +++ b/PARR.API/Program.cs @@ -73,5 +73,6 @@ app.UseAuthorization(); app.MapControllers(); app.InstallCors(builder); +app.UseStaticFiles(); app.Run(); diff --git a/PARR.API/wwwroot/.gitkeep b/PARR.API/wwwroot/.gitkeep new file mode 100644 index 00000000..e69de29b