Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created April 10, 2025 19:27
Show Gist options
  • Save bjoerntx/643238aa866e22131cdfeb40614a22e5 to your computer and use it in GitHub Desktop.
Save bjoerntx/643238aa866e22131cdfeb40614a22e5 to your computer and use it in GitHub Desktop.
# Use the official .NET 8.0 runtime image
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
# Set the working directory inside the container
WORKDIR /app
# Copy the TXTextControl.Web.Server folder contents to the container
COPY TXTextControl.Web.Server/ .
# Expose default ASP.NET port (optional, depending on your app config)
EXPOSE 4282
# Start the application
ENTRYPOINT ["dotnet", "TXTextControl.Web.Server.Core.dll"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment