Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frameworks/minima-sync/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bin/
obj/
.git
2 changes: 2 additions & 0 deletions frameworks/minima-sync/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin/
obj/
15 changes: 15 additions & 0 deletions frameworks/minima-sync/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# NativeAOT build — produces a single native binary (no .NET runtime at runtime).
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
RUN apt-get update && apt-get install -y --no-install-recommends clang zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY minima-sync.csproj ./
RUN dotnet restore -r linux-x64
COPY . .
RUN dotnet publish -c Release -r linux-x64 -p:PublishAot=true -o /app/out

FROM debian:bookworm-slim
WORKDIR /app
COPY --from=build /app/out/minima-sync /server
EXPOSE 8080
ENTRYPOINT ["/server"]
Loading