habraview/Dockerfile

8 lines
241 B
Docker
Raw Permalink Normal View History

2024-11-03 16:55:43 +03:00
FROM thevlang/vlang:latest AS builder
COPY . .
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"]