From 034d58bf07c55fa5ae7a347defda8cbacf811027 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 6 Aug 2025 13:18:13 -0600 Subject: chore: update makefile and build scripts --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 290513e..cb053a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,7 @@ FROM envoyproxy/envoy:v1.34-latest AS envoy-binary # Build stage for getting dumb-init FROM debian:bookworm-slim AS dumb-init-builder -RUN apt-get update && apt-get install -y wget && \ - wget -O /usr/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64 && \ - chmod +x /usr/bin/dumb-init +RUN apt-get update && apt-get install -y wget && wget -O /usr/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64 && chmod +x /usr/bin/dumb-init # Build stage for getting SpiceDB binary FROM authzed/spicedb:latest AS spicedb-binary @@ -16,8 +14,8 @@ FROM golang:1.24-alpine AS build ENV CGO_ENABLED=0 WORKDIR /app COPY . ./ -RUN go build -o /bin/sparkled ./cmd/sparkled/main.go -RUN go build -o /bin/authzd ./cmd/authzd/main.go +RUN go build -mod=vendor -o /bin/sparkled ./cmd/sparkled/main.go +RUN go build -mod=vendor -o /bin/authzd ./cmd/authzd/main.go WORKDIR /app/vendor/github.com/xlgmokha/minit RUN go build -o /bin/minit main.go -- cgit v1.2.3