mirror of
https://github.com/D4M13N-D3V/comissions-app-core-api.git
synced 2025-03-14 10:04:55 +00:00
fix: path to the comissions.app.api in docker file
This commit is contained in:
parent
3a618f046e
commit
aa5f814311
@ -7,18 +7,18 @@ EXPOSE 8081
|
|||||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["/src/ArtPlatform.API/ArtPlatform.API.csproj", "ArtPlatform.API/"]
|
COPY ["/src/comissions.app.api/comissions.app.api.csproj", "comissions.app.api/"]
|
||||||
COPY ["/src/ArtPlatform.Database/ArtPlatform.Database.csproj", "ArtPlatform.Database/"]
|
COPY ["/src/ArtPlatform.Database/ArtPlatform.Database.csproj", "ArtPlatform.Database/"]
|
||||||
RUN dotnet restore "ArtPlatform.API/ArtPlatform.API.csproj"
|
RUN dotnet restore "comissions.app.api/comissions.app.api.csproj"
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR "/src/ArtPlatform.API"
|
WORKDIR "/src/comissions.app.api"
|
||||||
RUN dotnet build "ArtPlatform.API.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
RUN dotnet build "comissions.app.api.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
RUN dotnet publish "ArtPlatform.API.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
RUN dotnet publish "comissions.app.api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=publish /app/publish .
|
COPY --from=publish /app/publish .
|
||||||
ENTRYPOINT ["dotnet", "ArtPlatform.API.dll"]
|
ENTRYPOINT ["dotnet", "comissions.app.api.dll"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user