2024-11-03 16:55:43 +03:00
|
|
|
FROM thevlang/vlang:latest AS builder
|
|
|
|
COPY . .
|
2024-11-28 21:16:38 +03:00
|
|
|
RUN v -prod -skip-unused -cc gcc -cflags -static -cflags -s -d hv_version=$(git describe --tags) . -o /habraview
|
2024-11-03 16:55:43 +03:00
|
|
|
|
|
|
|
FROM scratch AS prod
|
|
|
|
COPY --from=builder /habraview .
|
|
|
|
ENTRYPOINT ["/habraview"]
|