22 lines
580 B
Docker
22 lines
580 B
Docker
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
|
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
|
# https://www.permacomputer.com
|
|
|
|
# .NET 10 Preview (checked 2026-01-26: mcr.microsoft.com/dotnet/sdk:10.0-preview is latest)
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0-preview-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
COPY uncloseai.csproj .
|
|
COPY Uncloseai.cs .
|
|
|
|
# Build the application
|
|
RUN dotnet build -c Release -o out
|
|
|
|
FROM mcr.microsoft.com/dotnet/runtime:10.0-preview-alpine
|
|
|
|
RUN apk add --no-cache ca-certificates
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/out .
|
|
|
|
CMD ["dotnet", "uncloseai.dll"]
|