-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: no need to lock the alpine version
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.22.4-alpine3.18 AS builder | ||
FROM golang:1.22.4-alpine AS builder | ||
|
||
RUN apk add --no-cache git build-base libpng-dev protoc | ||
RUN go install google.golang.org/protobuf/cmd/[email protected] | ||
|
@@ -18,7 +18,7 @@ RUN go generate -tags tools -x ./... | |
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -v -a -installsuffix cgo -o /go/bin/api cmd/api/serve.go | ||
|
||
|
||
FROM golang:1.22.4-alpine3.18 | ||
FROM golang:1.22.4-alpine | ||
RUN apk add --no-cache libstdc++ libpng | ||
COPY --from=builder /go/bin/api /api | ||
WORKDIR /app | ||
|