22 lines
550 B
Docker
22 lines
550 B
Docker
# PUBLIC DOMAIN - NO LICENSE, NO WARRANTY
|
|
# Copyright 2025 TimeHexOn & foxhop & russell@unturf
|
|
# https://www.permacomputer.com
|
|
|
|
# .NET 9.0 F# (checked 2025-10-13: mcr.microsoft.com/dotnet/sdk:9.0 is latest stable)
|
|
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
COPY fsharp.fsproj .
|
|
COPY Uncloseai.fs .
|
|
|
|
# Build the application
|
|
RUN dotnet build -c Release -o out
|
|
|
|
FROM mcr.microsoft.com/dotnet/runtime:9.0-alpine
|
|
|
|
RUN apk add --no-cache ca-certificates
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/out .
|
|
|
|
CMD ["dotnet", "fsharp.dll"]
|