We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d70d9a8 + 7eb06b7 commit 3662803Copy full SHA for 3662803
Dockerfile
@@ -1,4 +1,4 @@
1
-FROM golang:alpine
+FROM golang:1.14.3-alpine3.11 as builder
2
3
# Prevent linking against libc
4
ENV CGO_ENABLED 0
@@ -9,5 +9,9 @@ WORKDIR /go/src/github.com/nxtlytics/ec2metaproxy
9
ADD . /go/src/github.com/nxtlytics/ec2metaproxy
10
RUN go get github.com/nxtlytics/ec2metaproxy/cmd/ec2metaproxy
11
12
+FROM alpine:3.11.6
13
+
14
+COPY --from=builder /go/bin/ec2metaproxy /go/bin/ec2metaproxy
15
16
CMD []
17
ENTRYPOINT ["/go/bin/ec2metaproxy"]
0 commit comments