summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-08-06 13:18:13 -0600
committermo khan <mo@mokhan.ca>2025-08-14 16:41:22 -0600
commit034d58bf07c55fa5ae7a347defda8cbacf811027 (patch)
treedc8f733b1d66d369455096d3a61d508367a9371f /Dockerfile
parent0b7103e850232eaab4e87a0322817055e55dbe51 (diff)
chore: update makefile and build scripts
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 3 insertions, 5 deletions
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