Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
WORKDIR /build
|
||||
ENV ASPNETCORE_URLS=http://+:80
|
||||
EXPOSE 80
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["PosterMaker.Core/PosterMaker.Core.csproj", "PosterMaker.Core/"]
|
||||
RUN dotnet restore "PosterMaker.Core/PosterMaker.Core.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/PosterMaker.Core"
|
||||
RUN dotnet build "PosterMaker.Core.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "PosterMaker.Core.csproj" -c Release -o /app/publish
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "PosterMaker.Core.dll"]
|
||||
Reference in New Issue
Block a user