habraview/Dockerfile
2024-11-03 16:55:43 +03:00

8 lines
235 B
Docker

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"]