Files
Engine-Template/Dockerfile
2026-04-06 13:12:08 +02:00

17 lines
328 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /App
COPY . ./
RUN dotnet restore Platforms/Server
RUN dotnet publish Platforms/Server -c Release -r linux-musl-x64 --self-contained true -o out
FROM alpine:latest
WORKDIR /App
COPY --from=build /App/out .
RUN apk add --no-cache icu-libs
ENTRYPOINT ["./MyUniverse"]