Set newt version in dockerfile

Former-commit-id: 44ca592a5c
This commit is contained in:
Owen
2026-03-08 11:28:56 -07:00
committed by Owen Schwartz
parent bc5eaa9a35
commit 9377df6526
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -17,7 +17,8 @@ RUN go mod download
COPY . .
# Build the application
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /newt
ARG VERSION=dev
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X main.newtVersion=${VERSION}" -o /newt
FROM public.ecr.aws/docker/library/alpine:3.23 AS runner