Skip to content

Commit

Permalink
update build command
Browse files Browse the repository at this point in the history
Signed-off-by: ozkanonur <[email protected]>
  • Loading branch information
onur-ozkan committed Jul 23, 2023
1 parent a3642c1 commit 96a070f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .container/Containerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Compilation
FROM docker.io/library/golang:1.20.6-alpine as build
FROM docker.io/library/golang:1.20.6-bullseye as build
WORKDIR /app

COPY . .

RUN go build -ldflags "-s -w" package-search-api.go
RUN go build -a -ldflags "-linkmode external -extldflags '-static' -s -w" package-search-api.go

# Runtime
FROM docker.io/library/debian:bullseye-slim
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Development session
- go run package-search-api.go

Prod-level binary:
- go build -ldflags "-s -w" package-search-api.go
- go build -a -ldflags "-linkmode external -extldflags '-static' -s -w" package-search-api.go

**Endpoints**

Expand Down

0 comments on commit 96a070f

Please sign in to comment.