795d4606d7
Build and Push Docker Image / build-and-push (push) Successful in 1m25s
Added .dockerignore and Dockerfile for containerization. Introduced GitHub Actions workflow to build and push images to Gitea registry. Updated project file with Docker properties and Azure Containers Tools package. Enhanced launchSettings.json with Docker profile and improved environment settings.
18 lines
544 B
Docker
18 lines
544 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /src
|
|
|
|
COPY ["For Real Consulting/For Real Consulting.csproj", "For Real Consulting/"]
|
|
RUN dotnet restore "For Real Consulting/For Real Consulting.csproj"
|
|
|
|
COPY . .
|
|
WORKDIR "/src/For Real Consulting"
|
|
RUN dotnet publish "For Real Consulting.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
|
WORKDIR /app
|
|
COPY --from=build /app/publish .
|
|
|
|
EXPOSE 8080
|
|
ENV ASPNETCORE_URLS=http://+:8080
|
|
ENTRYPOINT ["dotnet", "For_Real_Consulting.dll"]
|