Update src/FrontOffice.Main/Dockerfile
Some checks failed
Build and Deploy / build (push) Failing after 14s
Some checks failed
Build and Deploy / build (push) Failing after 14s
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY src/*.sln ./ 2>/dev/null || true
|
COPY ["FrontOffice/NuGet.config", "NuGet.config"]
|
||||||
COPY src/*/*.csproj ./
|
COPY ["FrontOffice/FrontOffice.csproj", "FrontOffice/"]
|
||||||
RUN for file in *.csproj; do mkdir -p "${file%.*}" && mv "$file" "${file%.*}/"; done 2>/dev/null || true
|
RUN dotnet restore "FrontOffice/FrontOffice.csproj" --configfile NuGet.config
|
||||||
RUN dotnet restore "FrontOffice/FrontOffice.csproj" || dotnet restore
|
COPY . .
|
||||||
COPY src/ ./
|
WORKDIR "/src/BackOFrontOfficeffice"
|
||||||
RUN dotnet publish "FrontOffice/FrontOffice.csproj" -c Release -o /app/publish
|
RUN dotnet publish "./FrontOffice.csproj" -c Release -o /app/publish
|
||||||
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -13,3 +14,5 @@ COPY --from=build /app/publish .
|
|||||||
ENV ASPNETCORE_URLS=http://+:8080
|
ENV ASPNETCORE_URLS=http://+:8080
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["dotnet", "FrontOffice.dll"]
|
ENTRYPOINT ["dotnet", "FrontOffice.dll"]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user