Fix Dockerfile and k8s manifest for deployment

- Simplify Dockerfile: use pre-built cross-compiled binary instead of
  building in Alpine (Alpine only has Zig 0.13, we need 0.15)
- Fix image URL in k8s manifest: git.mikhailkilin.ru (not gitea.)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mikhail Kilin
2026-02-18 16:11:33 +03:00
parent 819b28a672
commit 89f98f02be
2 changed files with 2 additions and 8 deletions

View File

@@ -1,10 +1,4 @@
FROM alpine:3.21 AS builder
RUN apk add --no-cache zig
COPY . /app
WORKDIR /app
RUN zig build -Doptimize=ReleaseSafe
FROM alpine:3.21
RUN apk add --no-cache ffmpeg ca-certificates
COPY --from=builder /app/zig-out/bin/transcribator /usr/local/bin/
COPY zig-out/bin/transcribator /usr/local/bin/
CMD ["transcribator"]