ticket #78 attempt 1

This commit is contained in:
Typosaurus
2026-07-19 20:46:52 +00:00
parent 43c5a948e8
commit c4490e783a
27 changed files with 2204 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# retoor <retoor@molodetz.nl>
# Multi-stage: build static binary with Swift, deploy in minimal image
FROM swift:6.0 AS builder
WORKDIR /build
COPY . .
RUN swift build -c release --static-swift-stdlib
FROM scratch AS deploy
COPY --from=builder /build/.build/release/molouptime /molouptime
COPY --from=builder /usr/lib/swift/linux /usr/lib/swift/linux
ENTRYPOINT ["/molouptime"]