forked from salesforce/sloop
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mitchnielsen/security-updates
Security updates
- Loading branch information
Showing
3 changed files
with
24 additions
and
26 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,21 +1,16 @@ | ||
FROM golang:1.19 as build | ||
FROM golang:1.21 AS build | ||
WORKDIR /go/sloop | ||
|
||
RUN apt-get update && apt-get install -y curl make | ||
|
||
# https://github.com/kubernetes-sigs/aws-iam-authenticator/releases | ||
RUN curl -o /aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.14.6/2019-08-22/bin/linux/amd64/aws-iam-authenticator \ | ||
&& wait \ | ||
&& chmod +x /aws-iam-authenticator | ||
COPY go.mod go.sum ./ | ||
RUN go mod tidy | ||
|
||
COPY . /build/ | ||
WORKDIR /build | ||
COPY . . | ||
RUN make linux | ||
|
||
RUN make | ||
|
||
FROM gcr.io/distroless/base | ||
COPY --from=build /go/bin/sloop /sloop | ||
# The copy statement below can be uncommented to reflect changes to any webfiles as compared | ||
# to the binary version of the files in use. | ||
# COPY pkg/sloop/webserver/webfiles /webfiles | ||
COPY --from=build /aws-iam-authenticator /aws-iam-authenticator | ||
ENV PATH="/:${PATH}" | ||
CMD ["/sloop"] | ||
|
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