forked from salesforce/sloop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (17 loc) · 727 Bytes
/
Dockerfile
File metadata and controls
21 lines (17 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM golang:1.19 as build
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 . /build/
WORKDIR /build
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"]