This commit is contained in:
ge
2024-11-03 16:55:43 +03:00
parent 493d23c2f3
commit 038d8d0859
6 changed files with 54 additions and 25 deletions

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM thevlang/vlang:latest AS builder
COPY . .
RUN v -prod -cc gcc -cflags -static -cflags -s -d habraview_version=$(git describe --tags) . -o /habraview
FROM scratch AS prod
COPY --from=builder /habraview .
ENTRYPOINT ["/habraview"]