Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions SpaceAPI.Host/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["SpaceAPI.API/SpaceAPI.API.csproj", "SpaceAPI.API/"]
RUN dotnet restore "SpaceAPI.API/SpaceAPI.API.csproj"


COPY . .
WORKDIR "/src/SpaceAPI.API"
RUN dotnet build "SpaceAPI.API.csproj" -c Release -o /app/build
WORKDIR "/src/SpaceAPI.Host"
RUN dotnet build "SpaceAPI.Host.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "SpaceAPI.API.csproj" -c Release -o /app/publish
RUN dotnet publish "SpaceAPI.Host.csproj" -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "SpaceAPI.API.dll"]
ENTRYPOINT ["dotnet", "SpaceAPI.Host.dll"]
2 changes: 1 addition & 1 deletion SpaceAPI.Host/SpaceAPI.Host.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
Expand Down
1 change: 0 additions & 1 deletion SpaceAPI.Host/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public void ConfigureServices(IServiceCollection services)
});
services.AddMvcCore()
.AddApiExplorer();
//services.AddValidatorsFromAssemblyContaining <
ConfigureVerticals(services, Configuration);
}

Expand Down