-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update Go to 1.18 + Alpine to 3.15
- Loading branch information
1 parent
3b7c333
commit 40fec2a
Showing
6 changed files
with
116 additions
and
443 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
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,13 +1,13 @@ | ||
FROM golang:1.16-alpine AS builder | ||
FROM golang:1.18-alpine3.15 AS builder | ||
COPY . /go/src/github.com/tsuru/rpaas-operator | ||
WORKDIR /go/src/github.com/tsuru/rpaas-operator | ||
RUN apk add --update gcc git make musl-dev && \ | ||
make build/api | ||
|
||
FROM alpine:3.8 | ||
FROM alpine:3.15 | ||
COPY --from=builder /go/src/github.com/tsuru/rpaas-operator/bin/api /bin/rpaas-api | ||
RUN apk update && \ | ||
apk add --no-cache ca-certificates && \ | ||
rm /var/cache/apk/* | ||
EXPOSE 9999 | ||
CMD ["/bin/rpaas-api"] | ||
CMD ["/bin/rpaas-api"] |
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
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
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
Oops, something went wrong.