πDeploy a .NET Core Application on Clouddley
Learn how to deploy a .NET Core app on Clouddley.
Prerequisites
Deploying your .NET Core Application
# Build stage
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
# Copy csproj and restore dependencies
COPY *.csproj ./
RUN dotnet restore
# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o /app/publish /p:UseAppHost=false
# Runtime stage
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS final
WORKDIR /app
COPY --from=build /app/publish .
# Set the port to match local dev
EXPOSE 5013
ENTRYPOINT ["dotnet", "newApp.dll"]
Step 1: Configure Service

Step 2: Configure Git

Step 3: Configure your Virtual Machine

Step 4: Configure app settings

Step 5: Configure Environment Variables



Step 6: Set up Notifications (optional)

Step 7: Test and Verify the app


Conclusion
Last updated
