From f5f5da51c8f2e3e83ddc70b94eda2731611e8c2e Mon Sep 17 00:00:00 2001 From: miaurizius Date: Tue, 9 Jun 2026 13:45:03 +0200 Subject: [PATCH] embedded frontend to docker image --- Dockerfile | 4 ++++ deploy.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5b3adbe..d24e71d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,5 +17,9 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \ go build -ldflags "-s -w" -o MiauInv . FROM scratch + COPY --from=builder /app/MiauInv /MiauInv + +COPY --from=builder /app/frontend /frontend + ENTRYPOINT ["/MiauInv"] \ No newline at end of file diff --git a/deploy.sh b/deploy.sh index 0b8b09e..6e6e6e9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,5 +1,5 @@ sudo docker buildx build \ --platform linux/amd64,linux/arm64 \ -t git.miaurizius.de/miaurizius/miauinv:latest \ - -t git.miaurizius.de/miaurizius/miauinv:v1.0.0 \ + -t git.miaurizius.de/miaurizius/miauinv:v1.0.1 \ --push . \ No newline at end of file