First Produciton Attempt
All checks were successful
CI Build and Deploy / build (push) Successful in 4m13s
All checks were successful
CI Build and Deploy / build (push) Successful in 4m13s
This commit is contained in:
16
Creative/Dockerfile
Normal file
16
Creative/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["Creative/Creative.csproj", "Creative/"]
|
||||
RUN dotnet restore "Creative/Creative.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/Creative"
|
||||
RUN dotnet publish -c Release -o /app/publish
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/publish .
|
||||
ENTRYPOINT ["dotnet", "Creative.dll"]
|
||||
Reference in New Issue
Block a user