This commit is contained in:
bryanpedini committed 2026-03-05 01:31:57 +01:00
1 parent 177aa6d44e
commit 5ae988cb6c
3 files changed
+17 -3

No files matched your search

+3 -3
View File
@@ -19,15 +19,15 @@ RUN CGO_ENABLED=0 GOOS=${GO_OS} GOARCH=${GO_ARCH} \
go build \
-installsuffix cgo \
-ldflags="-w -s -X 'main.APP_VERSION=${APP_VERSION}' -X 'main.COMMIT_ID=$(git log HEAD --oneline | awk '{print $1}' | head -n1)'" \
--o /app
--o /gocv
# Stage 2 · scratch image
FROM scratch
# Copy the necessary stuff from the build stage
COPY --from=build /app /app
COPY --from=build /gocv /gocv
# Copy the certificates - in case of fetches
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/cert.pem
# Execute the binary
ENTRYPOINT ["/app"]
ENTRYPOINT ["/gocv serve"]