We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f88600 commit 097d5dbCopy full SHA for 097d5db
.goreleaser.yaml
@@ -1,12 +1,6 @@
1
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2
version: 2
3
4
-before:
5
- hooks:
6
- - go mod tidy
7
- - go fmt ./...
8
- - go generate ./...
9
-
10
builds:
11
- id: semantic-search-api
12
main: ./cmd/main.go
Dockerfile
@@ -1,16 +1,5 @@
-FROM golang:1.24-alpine AS builder
+FROM gcr.io/distroless/static:nonroot
-WORKDIR /app
+COPY semantic-search-api /semantic-search-api
-COPY go.mod go.sum ./
-RUN go mod download
-COPY . .
-RUN go build -o semantic-search-api ./cmd/main.go
-FROM scratch
13
14
-COPY --from=builder /app/semantic-search-api /semantic-search-api
15
16
-ENTRYPOINT ["/semantic-search"]
+ENTRYPOINT [ "/semantic-search-api" ]
0 commit comments