First commit

This commit is contained in:
2026-04-30 09:10:43 -05:00
commit fc41889a4b
9 changed files with 703 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
# Build stage
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY ["redirect.csproj", "./"]
RUN dotnet restore "redirect.csproj"
COPY . .
RUN dotnet publish "redirect.csproj" -c Release -o /app/publish
# Runtime stage
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
COPY --from=build /app/publish .
EXPOSE 8080
ENTRYPOINT ["dotnet", "redirect.dll"]