Rename WebApi project to Vegasco.Server.Api
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
And update all references including comments etc.
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -10,18 +10,18 @@ USER app
|
||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
WORKDIR /src
|
||||
COPY ["src/WebApi/WebApi.csproj", "src/WebApi/"]
|
||||
RUN dotnet restore "./src/WebApi/WebApi.csproj"
|
||||
COPY ["src/Vegasco.Server.Api/Vegasco.Server.Api.csproj", "src/Vegasco.Server.Api/"]
|
||||
RUN dotnet restore "./src/Vegasco.Server.Api/Vegasco.Server.Api.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/src/WebApi"
|
||||
RUN dotnet build "./WebApi.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
WORKDIR "/src/src/Vegasco.Server.Api"
|
||||
RUN dotnet build "./Vegasco.Server.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
RUN dotnet publish "./WebApi.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
RUN dotnet publish "./Vegasco.Server.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
HEALTHCHECK --interval=20s --timeout=1s --start-period=10s --retries=3 CMD curl --fail http://localhost:8080/health || exit 1
|
||||
ENTRYPOINT ["dotnet", "WebApi.dll"]
|
||||
ENTRYPOINT ["dotnet", "Vegasco.Server.Api.dll"]
|
||||
Reference in New Issue
Block a user